Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I'm trying to extract data from a multi-member file on an AS400. The member resides in /qsys.lib/aplus7fts.lib/rcw@@.file(rcwxx.mbr) within the Integrated File System.

Best case scenerio, I would like to retrieve this data via SQL. I have read articles on doing a create alias mylib/myfile for mylib/myfile(member). I tried this unsuccessfully. I have tried to run the create alias from the command line and the SQL through the navigator.

Does anyone have anymore insight into this situation? Please help.
Posted
Updated 24-Nov-10 7:40am
v2

1 solution

I am not sure about mulit-member objects on the AS400, but I do connect to an AS400 from SQL to extract data. Not sure if this will help but worth a try

1) Create linked server, using provider IBM DB2 for i5/OS...
2) Under providers, locate the IBMDA400, allow inprocess, set to true
3) In the database you want the object linked to, add a new Synonym pointing to the object you want to extract data from.
4) To test, run a select of the synonym

Hope this helps, if not do you have a specific error message?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900