08-18-2014 09:01 AM
Could somebody please throw me an idea..I need to read the pds members sequentially and if matching string found update/create the variable to further use later in the program...I coded small test program which seems to just go one time and read only 1 member of pds though I have more than 1....
PUT 'THIS IS MEMCOUNT VALUE' MEMCOUNT ;
IF (memcount>0) then
Do i=1 to memcount ;
Infile dummyf filevar=dataset
end=eof lrecl=80 pad;
do until(eof) ;
input @'thmvdel=' thmvdel 4.;
If i remove the Infile and read the saslog it seems the loop is going 2 times as expected (pds contain two members)....
08-18-2014 11:59 AM
Do it the easy way. Do not use the idea of a directory listing.
Use the masking * SAS(R) 9.4 Companion for z/OS, Third Edition The filename/membername is returned when reading all members using the infile filename statement SAS(R) 9.4 Statements: Reference, Third Edition .
It almost asthonishing how many are trying to code something that is already made present.