Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RPG and Windows SQL Server

Status
Not open for further replies.

jsentigar

IS-IT--Management
Aug 16, 2001
1
US
Can anyone assist me in how to access through an RPG program, database records that reside on an Windows SQL server. I need only read access to these records and cannot seem to find an easy way.

Thanks
 
You can do it through a sockets program, but the easy way is to FTP the file over to the AS/400, and process that with an RPG program. The destination file can either be a flat file or a DDS-defined file.

If the file on the server has several different formats (like a bank ACH file), I have logicals over the flat file which define the fields and select only that format. If all you need to do is read the file, then that should work.


"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."

--Leonardo da Vinci

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top