VL-Web V14SP1: How to read files from the remote LANSA database.

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Rieko Saitoh
Posts: 58
Joined: Sat Apr 30, 2016 11:46 am

VL-Web V14SP1: How to read files from the remote LANSA database.

Post by Rieko Saitoh »

Hi,

product: VL-Web
LANSA version: V14SP1
EPC level: EPC141070
Web server: IBM Apache

There are two IBMis (IBMiA, IBMiB) in our environment. IBMiA has IBM Apache web server, VL-Web programs and LANSA databases. I would like to make the VL-Web programs in IBM iA to read the files of LANSA repository in IBMiB. I'm looking for a method other than DDM, because of using "SELECT_SQL" command. Does anyone know a good way?

Thank you.

Best regards,
Rieko Saitoh
LANSA japan
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: VL-Web V14SP1: How to read files from the remote LANSA database.

Post by atostaine »

I'm not sure how Lansa works but plain old IBM i you would do a SQL connect

/Exec SQL
connect to :RemoteMachineID user :UserID using :PassWord;

I suppose if you ran that in the start of the listener job then LANSA would follow the connection.

The other possibility for LANSA is doing the define_os400_server and connect_file Bif's
Art Tostaine
Post Reply