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

overwrite a record in output VSAM file


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

New User


Joined: 02 Apr 2009
Posts: 1
Location: Singapore

PostPosted: Fri Apr 03, 2009 7:17 am
Reply with quote

Hi,

My requirement is to copy 2 records from input VSAM file to an outfile VSAM file(based on a selection criteria for example if first 2 bytes of the records contain 01). Please note that these records are already existing in the output VSAM file. So effectively I need to overwrite these records in the output VSAM file.

I have been able to achieve this thing in a number of steps using SORT and REPRO.

But, is it possible to achieve this in one step either by using SORT, IDCAMS etc?

Please help.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Apr 03, 2009 7:35 am
Reply with quote

Hello and welcome to the forum,

It would be completely trivial if you were willing to write a bit of actual code. . .
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Fri Apr 03, 2009 10:52 am
Reply with quote

szsharma
check the similar topic, ibmmainframes.com/viewtopic.php?t=39367
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top