Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Need to update VSAM file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Need to update VSAM file.
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: 1187
Location: Bangalore,India

PostPosted: Wed May 26, 2010 4:11 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 7 Fri Sep 22, 2017 11:35 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us