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

JCL using idcams for replacing records


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

New User


Joined: 21 May 2005
Posts: 21
Location: Hyderabad

PostPosted: Tue Nov 29, 2005 8:20 pm
Reply with quote

HI all,

i need jcl for replacing records in se file(input) to ke files(output)

preferably using idcams.

Regards
Senthil
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Wed Nov 30, 2005 6:44 am
Reply with quote

Try this

Code:
             
//JS00100  EXEC PGM=IDCAMS                 
//INDD1  DD DSN=MY.SEQ.FILE,     
//       DISP=SHR         
//OUTDD1 DD DSN=MY.KSDS.FILE,   
//       DISP=SHR               
//SYSIN DD *                               
 REPRO INFILE(INDD1) OUTFILE(OUTDD1) REPLACE       
/*                                         
//SYSPRINT DD SYSOUT=*                     




REPLACE - WHEN COPYING INTO A NON-EMPTY KSDS, OR RRDS, REPLACE
SPECIFIES THAT ANY SOURCE RECORD WHICH HAS A KEY OR
RECORD NUMBER IDENTICAL TO A KEY OR RECORD NUMBER OF
A TARGET RECORD IS TO REPLACE THE TARGET RECORD.
DEFAULT - NOREPLACE

NOREPLACE- WHEN COPYING INTO A NON-EMPTY KSDS, OR RRDS,
NOREPLACE
SPECIFIES THAT ANY SOURCE RECORD WHICH HAS A KEY OR
RECORD NUMBER IDENTICAL TO A KEY OR RECORD NUMBER OF
OF A TARGET RECORD IS NOT TO REPLACE THE TARGET RECORD.
DEFAULT - NOREPLACE

icon_smile.gif
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top