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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm

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