My requirement is I need to compare the member name give in one SE with one pds which contains the mebers name. If the member name in SE file match(In se file content is only members name) with the member name in PDS then I need to copy that member in some other pds.
I am able to read the PS file by this below code
ADDRESS TSO
"ALLOC F(INFILE) DSN('my.seq.dsn') SHR REU"
"EXECIO * DISKR INFILE ( FINIS STEM MYFILE."
"FREE F(INFILE)"
I = 1
DO WHILE I <= MYFILE.0
SAY ' LINE ' I ' : ' MYFILE.I
I = I + 1
END
Now I need to compare the se file member to pds member name. For this I need to read the PDS member name.
I am not getting how to read and compare the PDS member name with se file content.
How can i read the PDS member in array so that I can comare the pds member name with other variable.