You could use DYNALLOC - "Information retrieval".  I don't have an example that 
I can share.

You can also use REXX BPXWDYN, which is a hi level interface to DYNALLOC/SVC99.
You don't have to use REXX, you can also use a HLL.

See: 
https://www.ibm.com/docs/en/zos/2.5.0?topic=output-requesting-allocation-information
*INRTDDN and **INRTDSN*

and for non-REXX callers:
https://www.ibm.com/docs/en/zos/2.5.0?topic=conventions-conventional-mvs-parameter-list

Kirk Wolf
Dovetailed Technologies
https://coztoolkit.com

On Thu, Jul 31, 2025, at 9:01 PM, Brian Westerman wrote:
> Hi,
> 
> Does anyone have assembler code to figure out the DDNAME to JES DSNAME match 
> under JES2?
> 
> For instance, the JES DSNAME for a DD is built under the format of:
> USERID.JOBNAME.JOBnnnnn.D000nnnn.? 
> 
> 
> If I have the UserID, JOBNAME and JOBnumber, and know that I want to get the 
> SYSPRINT from STEP01 of a job, is there a table that is kept somwhere that 
> puts the STEPNAME|PROCSTEP|DDNAME together with the JES2 dataset name so that 
> I can pull it up via spool browse?  
> 
> I know it must be there somewhere because SDSF seems to know it, i just can't 
> figure out where that type of information is kept in a format that i can 
> query, so that if I want to pull up the SYSPRINT output from STEP01 of a job, 
> that I can use that to create the D000nnnn number to get taht particular DD 
> and only that one.  
> 
> I know that some of the JES DD's have specific numbers like for JESJCL, etc.  
> But the rest of the DD's are not static, at least they don't appear to be.
> 
> Thanks for any help you can provide.
> 
> Brian
> 
> ----------------------------------------------------------------------
> 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