· Nov 28, 2023 2m read

java-excel-iris uses java code to read Excel data and store it into IRIS global

My newest app includes a java routine to read data from Excel 95, 97, 2000, XP, and 2003 workbooks and write the data into IRIS globals using Java Native API library.

If you have Git and Docker installed, clone/git pull the repo into any local directory

$ git clone

Open the terminal in this directory and run:

$ docker-compose up -d

Execute java class IRISNative

$ docker-compose exec -it iris java IRISNative

Press Enter to accept the default /opt/irisapp/excel/money.xls.

>>> Input File [/opt/irisapp/excel/money.xls]


The java code reads data from an Excel workbook. You can see the data in IRIS

$ docker-compose exec -it iris iris session iris
USER>zw ^excel
^excel(0,1,3)="Business Expense"

Import Excel data from IRIS global into IRIS persistent class

USER>w ##class(otw.iris.excel).importExcel(-1)

I added -1 above because I want to start importing with sheet 0. In my personal Excel workbook, I want to skip the first five workbooks.

Finally we can see the data in SQL


Discussion (1)1
Log in or sign up to continue