On 5/10/2016 2:18 PM, michelbutz wrote:
Using an example in the DFSSMS advanced services guide I got strange
output from OBTAIN With CAMLST
OBTAIN DSCB DSCB. CAMLST SEARCH,DSABC,VOL,WORKAREA DSABC. DC.
CL44'data.set.name' VOL. DC. CL6'VOLSER' WORKAREA DS CL140
Register 15 returned a zero
WORKAREA pointed to a '1' indicating a format1 DSCB then a volser
when I back up the address of WORKAREA by 50 bytes I got the 44 bytes
dataset name followed by the volser followed by a '1' followed by the
volser again The 2 byte volseq field didn't seem to make any sense
and the 3 byte creation date had some binary number not a EBCDIC
representation that I would expect
When you backup 50 bytes from the work area, you are looking at your
search parameters DC. and VOL. OBTAIN only returns the data portion
of the DSCB, so you got exactly what you were asking for. To make this
easier to work with, define the DSN and work area consecutively, then
the IECSDSL! 1 mapping will match exactly.
Gerhard Postpischil
Bradford, VT
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN