IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

UCC11 deletes file with disp = (mod,catlg,catlg) ?


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
obulisankar

New User


Joined: 03 May 2007
Posts: 20
Location: bangalore

PostPosted: Mon Sep 08, 2008 6:54 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Mon Sep 08, 2008 7:28 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Mon Sep 08, 2008 11:26 pm
Reply with quote

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 icon_confused.gif

Possibly there is something i misunderstand.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Tue Sep 09, 2008 8:32 am
Reply with quote

Hi,

If that were my task - I might have followed Dick.

However, there is one more suggestion (not tested)BTW, use
Code:
TYPRUN=F
on UCC11 step, someting like -
Code:
//step001 EXEC UCC11RMS,TYPRUN=F
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
Search our Forums:


Back to Top