Neither RDJFCB nor SVC 99 Info Retrieval is perfectly simple but both are very 
workable.

RCJFCB works just like an OPEN except instead of actually opening the DCB, it 
uses an entry in the open exit list to point to an area in which it stores a 
table that includes the dataset name and any member or G000V00. It does not 
work for HFS files. (Wrote that paragraph from memory -- don't shoot me if I 
got something wrong.)

SVC 99 takes some work to set up but is the "modern" (1985?) way to do things. 
There are a number of front-ends to SVC 99 that make its use a lot easier from 
a higher-level language. It supports HFS as well as conventional datasets. SVC 
99 is also known as DYNALLOC. It's main function is dynamic allocation (doing 
what a DD statement does, but at run time rather than at JCL time) but it also 
does de-allocation, concatenation, and information retrieval. It is documented, 
somewhat counter-intuitively, in the authorized assembler services guide. (It 
does not require authorization generally and the documentation is basically 
reference documentation, not "guide.")

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Scott Ford
Sent: Thursday, March 19, 2015 1:57 PM
To: [email protected]
Subject: RDJFCB

All:

I have a need to find the current dataset name of a ddname of a STC running. 
The STC is in Cobol and I would like to write the ddname query in Assembler. 
Could I do the following ....

Call xyz passing ddname
... Either with EXTRACT or RDJFCB find the dataset name and pass it back

?

Regards,
Scott

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to