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

Repro outfile to be opened in MOD


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
skkp2006

New User


Joined: 14 Jul 2006
Posts: 93
Location: Chennai,India

PostPosted: Fri Jul 14, 2006 10:21 am
Reply with quote

Hi

i need to take a backup of a sequential file using repro.But the problem is that the dsn name is getting created statically(during run time) and i can only code sysisn as follows

REPRO IDS(XT67.GRGALSC.BACKUP.G0005V00) -
ODS(XT67.GRGALSC.BACKUP.G0005V00.BKP)


My requirement is to append the existing backup file and i need to open that in disp=mod only.but if i run this job all the existing records will be flushed.Any idea how to open the ods file in disp=mod status ??? icon_rolleyes.gif
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Jul 16, 2006 9:14 am
Reply with quote

Hi,

Try using IN/OUTFILE (DDNAME) instead of I/ODS. Include the file defs for each DDNAME in the IDCAMS JCL. Code the OUTFILE disp as (MOD,CATLG,DELETE) or some such. Or maybe (MOD,KEEP,DELETE) for the 2nd file.

The one drawback is that the IP files must exist or you'll get a JCJ err (not a bad RC) and the rest of your job will flush.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts how to keep unpaired records with REPRO. JCL & VSAM 9
No new posts Naming a newly opened screen using REXX CLIST & REXX 2
No new posts Find a string in PS file opened in br... CLIST & REXX 3
No new posts IDCAMS Allocate & Repro JCL & VSAM 9
No new posts dataset copy question - REPRO or some... TSO/ISPF 2
Search our Forums:

Back to Top