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 All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts Sort SMF records? SYNCSORT 6
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts Identify and write records containing... SYNCSORT 11
No new posts Filter records where condition is in ... SYNCSORT 6
Search our Forums:


Back to Top