View previous topic :: View next topic
|
Author |
Message |
Pons
New User
Joined: 25 May 2007 Posts: 61 Location: Coimbatore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Bhargav_1058
New User
Joined: 13 Dec 2008 Posts: 53 Location: New York
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why unload the file, SORT products can do VSAM >> VSAM |
|
Back to top |
|
|
Bhargav_1058
New User
Joined: 13 Dec 2008 Posts: 53 Location: New York
|
|
|
|
Yeah thats true...
Sort can do VSAM to VSAM, not required to unload the VSAM. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Pons
New User
Joined: 25 May 2007 Posts: 61 Location: Coimbatore
|
|
|
|
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 |
|
|
|