View previous topic :: View next topic
|
Author |
Message |
obulisankar
New User
Joined: 03 May 2007 Posts: 20 Location: bangalore
|
|
|
|
Hi All,
I have a JCL which creates an output file in one step and in the next subsequent steps i need to retain the existing records also the new records should be appended to the existing file.
I created that file with DISP = (MOD,CATLG,CATLG)
This was appending the new records to the existing records in the file.
But next time when i rerun the job with UCC11 as first step this file was not getting deleted and it kept on appending to the same file for every run.
Can anybody suggest on the same.
Thanks in advance,
Sankar |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
The CA-11 user manual says
Quote: |
All simple (non-GDG) data sets whose first DD reference is with DISP=NEW are uncataloged and also are scratched if on disk. This action prevents NOT CATLGD 2 situations. This catalog and data set maintenance is not performed on data sets which are exempted from it by the CA-11 user exits, U11RDSEX or U11UCSEX, or the CA-11 Volume Include/Exclude List. |
It sounds like DISP=MOD is not treated the same way. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Is there some reason the first step is not (,catlg,delete) and the subsequent steps (mod,keep)?
Using (mod,catlg,catlg) does not seem to be what you would want to use
Possibly there is something i misunderstand. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
If that were my task - I might have followed Dick.
However, there is one more suggestion (not tested)BTW, use
on UCC11 step, someting like -
Code: |
//step001 EXEC UCC11RMS,TYPRUN=F |
|
|
Back to top |
|
|
|