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
 

 

Select a record and update with the new value in a position

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
subbu1522

New User


Joined: 11 Sep 2008
Posts: 29
Location: USA

PostPosted: Wed Feb 22, 2012 12:15 pm    Post subject: Select a record and update with the new value in a position
Reply with quote

Hi, I would request your help.

1/p file: 1040 FB PS file
o/p file: same layout needed

Requirement: I/P file with a millions of records and I know the record with claim-number (pos 1-13) and need to change the date for that record and need to write to o/p file with all the records from I/p to o/p including the modified record.

Please help me.

Thanks,
Subbu.
Back to top
View user's profile Send private message

vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1504
Location: Chennai

PostPosted: Wed Feb 22, 2012 12:27 pm    Post subject:
Reply with quote

read about OVERLAY statement in DFSORT with an INCLUDE condition,

BTW changing claim date? I hope nothing unethical is done. :-)
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Wed Feb 22, 2012 1:42 pm    Post subject: Reply to: Select a record and update with the new value in a
Reply with quote

since You told nothing about the position of the <key> and the data to be changed

we can only hint on the general format of the sort statements to be used

Code:
// ... all the usual SORT jcl statements
//SYSIN DD *
  OPTION COPY
  INREC IFTHEN=(WHEN=(position,lenght,format,EQ,<key data>),OVERLAY=(position:<overlay data>))


searching the dfsort forum with the OvERLAY keyword will give You zillions of examples
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Wed Feb 22, 2012 11:18 pm    Post subject: Reply to: Select a record and update with the new value in a
Reply with quote

Might be a good idea to have a copy of the originals on a seperate tile.
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 SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


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