Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Command line script to get data from database table using sql

Question
Jonathan Harris · Mar 3, 2022

Command line script to get data from database table using sql

I want to have a script that can run from the usual unix, linux, or aix command line. It has to be able to get into an irissession and use set statements to get data using sql. It seems like I'm in a catch-22. When I use the irissession SERVER command at the command line, I can't run a script. When I put the irissession SERVER command in a script, it won't run anything in the script after that.

My goal for this script is to get this information and put it into a file which I can then parse.

#SQL #InterSystems IRIS
Product version: IRIS 2020.1

Source URL:https://community.intersystems.com/post/command-line-script-get-data-database-table-using-sql