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
 

 

Update a field within a group with a criteria

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

New User


Joined: 02 Jan 2008
Posts: 11
Location: Malaysia

PostPosted: Tue Aug 12, 2014 9:43 pm    Post subject: Update a field within a group with a criteria
Reply with quote

Hi,

I'm new to use Group= function and searching around and doesn't find the similar example for my reference.

Byte 1 to 9 is the grouping, whenever found a value of 'R' in Byte 11, 'Y' need to be updated into bytes 10 for the same group

Hopefully can get some help from here

My Input is
Code:

12345678901   <--- Column

T20140811NO
T20140811NP
T20140811NR
T20140812NO
T20140812NP
T20140813NR
T20140813NO


My Output expected is

Code:

T20140811YO
T20140811YP
T20140811YR
T20140812NO
T20140812NP
T20140813YR
T20140813YO
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7306

PostPosted: Tue Aug 12, 2014 9:48 pm    Post subject: Reply to: Update a field within a group with a criteria
Reply with quote

You're probably better off looking a JOINKEYS, with the same DSN for both input files.

In the JNF2CNTL include just the Rs. Then in the Main Task of the JOIN, set Y for those which match.
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 Why TS/OP would Not contact site supp... RahulG31 All Other Mainframe Topics 2 Wed Mar 22, 2017 7:46 am
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
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm


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