Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us