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

Need to update VSAM file.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Senthilkumar k
Warnings : 1

New User


Joined: 07 May 2009
Posts: 51
Location: Chennai

PostPosted: Wed May 26, 2010 3:26 pm
Reply with quote

Hi Everyone,
I have a VSAM file(KSDS), record size is 260 and and I want to update particular field in a record. For example,

Input record like below,

310000001SO23 201005232130MM95050.02010052321292010052420100
310000001AA10 ....................20100523160107000000000000
310000001WW01 200704111118SSS5010.20100524004845..0.........
310000001EW45 200802121149TYT5010.N5010
310000001AS12 ............SGF5010.60H 020050Y...............
310000001UO78 ............HJK5010.60..004005028P.0007007....
310000001LK56 .................... 200707021525

I need to check from COL 1 to COL 20 if it is equal to '310000001AS12 ' need to update that record in the COL 45 to 50 to 010020.

Would any help on this please.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed May 26, 2010 4:11 pm
Reply with quote

Hello Senthil,

Please try below sort card :

Code:
SORT FIELDS=COPY                                 
INREC IFTHEN=(WHEN=(1,20,CH,EQ,C'310000001AS12'),
              OVERLAY=(45:C'010020'))   
Back to top
View user's profile Send private message
Senthilkumar k
Warnings : 1

New User


Joined: 07 May 2009
Posts: 51
Location: Chennai

PostPosted: Wed May 26, 2010 5:45 pm
Reply with quote

Thanks Gupta...Its working fine.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
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
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top