On Thu, Mar 19, 2015 at 2:43 PM, Charles Mills <[email protected]> wrote:
> 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.") > > There is documentation on how to use SVC99() and DYNALLOC() in the C/C++ runtime manual. This is useful for learning how to setup the required structures in a C/C++ program. With careful thought, they can be transposed to COBOL. The SCV99() function is the one needed to retrieve dataset name from the DDname. As Charles mentioned, refer to the authorized assembler guide for the parameter reference. > 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 > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
