Hi Paul

I am late with this response because I have been away but as far as I can
see there are two issues with the sample JCL which contains the //HAMDLE DD
statement.

That particular DD statement does not contain any DCB information and hence
unless a DATACLAS is being automatically allocated via SMS the system will
only know what SPACE to allocate, not what the attributes are. This is turn
means that even though the SYSUT2 allocation assimilates to the same data
set the SYSUT2 OPEN within IEBUPDTE will not know what attributes apply.
(Remember that HANDLE is an arbitrary name and that there is no OPEN for it
in either IEFBR14 or IEBUPDTE so the system cannot scan control blocks.)

As regards the ADD statements. These have no bearing on DISPosition. It does
not matter whether the data set is new or already exists, to create a new
member the ./ ADD statement is used and to replace an existing member the ./
REPLACE statement is used. There is a functional split here between system
responsibility (OPEN/CLOSE) and program logic (ADD/REPLACE).

Kind Regards - Terry
 
Director
KMS-IT Limited
228 Abbeydale Road South
Dore
Sheffield
S17 3LA
UK
 
Reg : 3767263
 
Outgoing e-mails have been scanned, but it is the recipients responsibility
to ensure their anti-virus software is up to date.
 
 


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to