Could you explain what problem you are trying to solve with this technique?

How does it help your process to know which concatenated  dataset the data came 
from?  Why can you not use multiple DD Statements instead?

Lizette


> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Massimo Biancucci
> Sent: Monday, September 14, 2015 4:15 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Concatenated datasets read information.
> 
> Hi everybody,
> 
> is there any way to know which concatenated dataset I've read the current 
> record
> from ?
> 
> To be clear:
> 
> FILE1 DD DISP=SHR,DSN=MYDSN1
>       DD DISP=SHR,DSN=MYDSN2
>       DD DISP=SHR,DSN=MYDSN3
> 
> From a COBOL program:
> 
> READ FILE1 INTO MY-RECORD AT END GO E-O-P.
> 
> CALL "MYPGM to know the file I've read from".
> 
> MYPGM should be assembler I suppose.
> 
> I was not able to find anything in TIOT nor JFCB.
> 
> Thanks a lot in advance.
> Massimo

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to