On 20 May 2011 15:37, Phil Smith <[email protected]> wrote:
> From a program, how can I find out the SYSOUT class of a JES-owned data set?
>
> For example, given:
> SYSOUT DD SYSOUT=x
>
> How can a program find out what "x" is?

I don't believe there is any general way, since while there is limited
Dynalloc information retrieval, there is no such thing for dynamic
OUTPUT. Looked at another way, there are many ways that "x" can be
finally arrived at other than a simple SYSOUT=x, and I don't think it
is possible to find them all in a reliable way.

This is perhaps an instance of the larger problem of how to clone a DD
statement at run time, and I haven't been able to solve that one in a
general manner either. At times it would be nice to be able to allow a
program's user to supply a DD with appropriate information, e.g. for a
log file, and then Dynalloc another one "just the same" when it's time
to spin off the original. I don't think there are interfaces to do it.

Tony H.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to