Is there any way to browse the members by reading a member name from the file. I tried to execute following code..
/* REXX STP999*/
amr_file = "'TSOID.ABC.JOBLIST'"
"Alloc Fi(amrf) da("amr_file") shr"
"ExecIO * Diskr amrf (Stem amr_Lines. Finis "
say "record first 1" amr_lines.1
say "this is amr_file2" amr_file2
"Alloc F(DDbf2) da('file1') shr"
"ExecIO * Diskr DDbf2 (Stem rec. Finis "
say "this is rec one" rec.1
but i am getting the following error:
record first 1 TSOID.COMMON.XYZ(member1)
File1 is TSOID.COMMON.XYZ(member1)
IKJ56228I DATA SET FILE1 NOT IN CATALOG OR CATALOG CAN NOT BE ACCESSED
IRX0555E The input or output file DDBF2 is not allocated. It cannot be opened f
IRX0670E EXECIO error while trying to GET or PUT a record.
this is rec one REC.1
Also tried by changing the quotes like ..
'file1' or "'file1'" or "file1" or file
but got the same errors like IKJ56228I DATA SET FILE1 NOT IN CATALOG OR CATALOG CAN NOT BE ACCESSED