I used to access the DCB for PL/I programs (both F and "optimizing"), but the 
relevant interfaces are no longer documented and I'm not aware of any mapping 
macro for, e.g., the FCB.

Can you make a business case for IBM to open up the interface? If so, consider 
a REQ or SHARE requirement.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Larry Slaten [[email protected]]
Sent: Wednesday, July 14, 2021 10:44 AM
To: [email protected]
Subject: Mixing C/C++ with LE-conforming IBM HLASM

I am attempting to use the C/C++ FOPEN function to open a SYSLIB DD
pointing to a concatenation of executable libraries.  Then extract the
DCB address so that I can use it to populate the LOAD and BLDL macro.
This would make it easier to keep the root program RENT.  I realize that
I can code the DCB in the root assembler program and do what is
necessary to keep the program RENT.  But, using the C/C++ functions
would make it simpler.  I have used the FOPEN function to open the data
set, retrieved the file pointer.  The file pointer points to another
31-bit address. I have dumped the storage around that 31-bit address, it
still doesn't look like a DCB.  I  do see "SYSLIB" at +84 bytes, so I
appear to be close to the answer.  Does anybody know to obtain the DCB
address using the file pointer returned by FOPEN?

----------------------------------------------------------------------
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