0

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?

2 Answers2

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
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