<SNIP>
>  Assuming the following JCL:
> 
> //DD1   DD   DSN=dsname1,disp=shr
> //         DD   DSN=dsname2,disp=shr
> //         DD   DSN=dsname3,disp=shr
> 
> Where DD1 is opened for input.
> All  files are on DASD.
> How can I tell when dsname1 has been 'exhausted' and  reading
> starts on dsname2, etc?
<SNIP>

Depending on what you are doing, why not have a single-record
dataset with a unique character pattern, call it 'dsmark' and
put it into the concatenation:

//DD1  DD  DSN=dsname1,DISP=SHR
//     DD  DSN=dsmark,DISP=SHR
//     DD  DSN=dsname2,DISP=SHR
//     DD  DSN=dsmark,DISP=SHR
//     DD  DSN=dsname3,DISP=SHR

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to