Scott,

I think this would be more appropriately posted on IBM-MAIN, since this really 
has nothing to do with the assembler.

However, a DDNAME does not have an attribute of input or output. It has a DISP 
attribute of NEW, SHR, OLD, or MOD, but except for NEW (which initially must be 
output), there is no way to tell. This is because it is the DCB or ACB which 
determines the potential for input or output processing, not the DD statement. 
In addition, over the lifetime of the DDNAME (which represents an allocation), 
it could be input for a while, then output, or both concurrently.

Maybe it would help us to understand your intent better if you let us know what 
you are trying to accomplish?

Tom Harper
IMS Utilities Development Team
Neon Enterprise Software
Sugar Land, TX

-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]] On 
Behalf Of Scott Bennett
Sent: Wednesday, September 01, 2010 3:54 PM
To: [email protected]
Subject: Any ideas on how to know if a DDNAME is input or output?

I need to know if a DDNAME is input or output to a job step, I know some
can be both but will handle that manually.  I was planning to use
informatino found in TIOT and/or JFCB to determine if a DDNAME looks like
somthing that is input or looks like output.

Has anyone had to perform this task?  If so how did you make a best guess
on a DDNAME being input or output?

Thanks,
Scott

Reply via email to