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

SYNCSORT replace certain content of vsam into another vsam


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

New User


Joined: 25 May 2007
Posts: 61
Location: Coimbatore

PostPosted: Thu May 28, 2009 9:31 pm
Reply with quote

I have a VSAM file with 808080 in the 30th to 40th position.
I just want to modify the 808080 to 909090 for all the records into another VSAM file.
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 May 29, 2009 1:50 am
Reply with quote

Hello,

Your post shows 6 bytes, but mentions 11 positions. Show some proper sample input and the output you want from that input.
Back to top
View user's profile Send private message
Bhargav_1058

New User


Joined: 13 Dec 2008
Posts: 53
Location: New York

PostPosted: Fri May 29, 2009 1:36 pm
Reply with quote

Hi,

If your file is having all 808080 starting from 30th position to 40th position and if you want to change all of them then try below.

1). Copy your VASM to a flat file using below sort condition..

SORT FIELDS=COPY
INREC IFTHEN=(WHEN=(30,10,CH,EQ,C'8080808080'),OVERLAY=(30:C'9090909090'))

2). Copy the new output file from the above step to your VSAM file.

Thanks,
Bhargav.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri May 29, 2009 1:41 pm
Reply with quote

Why unload the file, SORT products can do VSAM >> VSAM
Back to top
View user's profile Send private message
Bhargav_1058

New User


Joined: 13 Dec 2008
Posts: 53
Location: New York

PostPosted: Fri May 29, 2009 1:45 pm
Reply with quote

Yeah thats true...

Sort can do VSAM to VSAM, not required to unload the VSAM.
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 May 29, 2009 9:23 pm
Reply with quote

Hello,

The request mentions 11 positions, the "solution" only 10. . .
Quote:
Show some proper sample input and the output you want from that input.
Is it really so difficult to post proper information icon_sad.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri May 29, 2009 9:26 pm
Reply with quote

Quote:
Is it really so difficult to post proper information
Dick, if it was easy there would be more people doing it ... sigh.
Back to top
View user's profile Send private message
Pons

New User


Joined: 25 May 2007
Posts: 61
Location: Coimbatore

PostPosted: Thu Jun 11, 2009 2:38 am
Reply with quote

Hi Dick,

I gave the data for sample. All 11 bytes are like 80808080808.

Thanks bhargav. I will try your idea and let you know in case of any assistance.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top