Hi,

Remembering that this thread is a change in direction from the original
where the poster was mystified by the fact that when copying from a
sequential data set to a member of a partitioned data set, the result was
another sequential data set due to DSORG=PS being coded on the output DD
statement.

It is known that a DCB merge occurs at open in the order; Program, JCL, then
File Label (DSCB). As this is a given, there should be no need to code DSORG
on a DD statement. Indeed the z/OS 1.9 JCL Reference manual now only infers
this as a possibility rather than explicitly stating it as an option, as in
very early OS releases. Moreover the JCL Reference Manual carries the
following warning "Cross checking of DCB subparameters is done when the data
set is opened, not when it is allocated. It is therefore possible to create
a data set which may not be usable. This may then result in the issuance of
a system completion code (ABEND) or unpredictable results when the data set
is opened"

Whilst the warning is not explicitly related to DSORG is does allude to the
circumstance the original poster found. 

On balance given what the JCL Reference Manual states, plus the advice of
others on this list, and using my own experience I would discourage the use
of DSORG in JCL.

As to the question of "How, then, does the utility determine DSORG by
opening for input?" My suspicion here would be a combination OPEN,TYPE=J
plus READJFCB. The fact that this is necessary is further evidence that it
is all too easy to corrupt the DSCB whether it is by program, JCL or a
combination of the two.

These are nuances borne of a 40+ year evolution as mention in another post.
It would seem that the emphasis is on education rather than software change
to resolve any resultant issues in this instance.

Kind regards - Terry

Terry Sambrooks
Director
KMS-IT Limited
228 Abbeydale Road South
Dore, Sheffield, S17 3LA, UK

Tel: +44 (0)114 262 0933
WEB: www.legac-e.co.uk

Company Reg: 3767263 at the above address

All outgoing E-mail is scanned, but it remains the recipient's
responsibility to ensure their system is protected from spy-ware, trojans,
viruses, and worms.  

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