This repository contains sample stock data and the scripts to load it into your InterSystems IRIS instance.
This sample assumes you already have an instance. If you do not yet have one, you can visit: Direct Access to InterSystems IRIS, Microsoft Azure, or Amazon Web Services.
-
Reset the default passwords
iris passwordThis will ask you for your new password, and will reset the password for all default user accounts -
Check the status of your iris instance
iris statusThis will show the current status of the InterSystems IRIS instance -
Get your connection information
iris infoThis will show the external ip address and ports needed to make connections to InterSystems IRIS
-
Get the sample data and scripts
iris load https://github.com/intersystems/Samples-Stock-Data
- Clone this repository:
git clone https://github.com/intersystems/Samples-Stock-Data - Navigate to System Explorer > Classes and import into the USER namespace from the data folder: DemoStockCls.xml, StocksUtil.xml, and TradeAndPersonForHibernate.xml
- On the Management Portal home, under Links select Terminal. Run (replace with your home directory):
do ##class(Demo.Stock).LoadData("<repo home>/data/all_stocks_1yr.csv")
-
Start a SQL Session
sudo docker exec -it try-iris iris session iris Username: SuperUser Password: <new password> USER>> do $system.SQL.Shell() [SQL]USER>> set selectmode=display [SQL]USER>> select top 10 * from demo.stock where transdate = '8/12/2016' order by stockclose desc -
Try other SQL commands
-
Type
qto exit the SQL Session -
Type
hto exit the iris session