I am using crystal reports to read files on an as400, some of the files are multi-member files. how can i read a certain memeber without using the create alaisis command?
Asked
Active
Viewed 240 times
2 Answers
1
SQL has no concept of a multi-member file. There is no special DB2 for i SQL extension that helps us handle multi-member files. Almost everyone who still uses multi-member files uses CREATE ALIAS.
If an alias doesn't work for your situation, call a stored procedure instead. The SP takes the member name, does the OVRDBF and creates an SQL result set that Crystal can then iterate over.

Buck Calabro
- 7,558
- 22
- 25
-
can you please provide an example of how to use the create alias comand when i try it i get a cursor error ? thanks for your help – tony cuccaro Jan 31 '13 at 18:22
-
1create alias buck.jan for prodlib.sales(jan2013) – Buck Calabro Jan 31 '13 at 18:31
1
SQL has no concept of Multiple Members, so you need to use an ALIAS.
create alias MyLib.MyAlias for MyLib.MyLogicalFile(MyMember);
select * from MyLib.MyAlias;
drop alias MyLib.MyAlias;
Refer to:

Community
- 1
- 1

Christoff Erasmus
- 925
- 1
- 10
- 26