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
 

 

CHANGE option in OUTREC - NOMATCH always a must?

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

New User


Joined: 30 Nov 2005
Posts: 26

PostPosted: Fri Dec 02, 2005 11:35 pm    Post subject: CHANGE option in OUTREC - NOMATCH always a must?
Reply with quote

When CHANGE option is used in OUTREC, a NOMATCH always need to be specified? What if we need to CHANGE only few values and want to keep the remaining values same?
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Sat Dec 03, 2005 12:33 am    Post subject:
Reply with quote

If you don't specify NOMATCH and you don't get a match, DFSORT will terminate. Not specifying NOMATCH is NOT the right strategy for changing only a few values and keeping the remaining values the same. You should use NOMATCH in that case. For example, if you want to change 'AB' and 'CD' to 'XY' in positions 11-12, but not change anything else, you would use:

Code:

  11,2,CHANGE=(2,C'AB',C'XY',C'CD',C'XY'),NOMATCH=(11,2)


That puts the original value into 11-12 when you don't get a match.

Alternatively, you can use DFSORT's IFTHEN feaure, e.g.

Code:

   INREC IFTHEN=(WHEN=(1,2,EQ,CH,C'AB',OR,1,2,CH,EQ,C'CD'),
      OVERLAY=(11:C'XY'))


That will change 'AB' or 'CD' in 11-12 to 'XY' without changing anything else.

You'll need z/OS DFSORT V1R5 PTF UQ95214 or DFSORT R14 PTF UQ95213 (Dec, 2004) in order to use DFSORT's IFTHEN and OVERLAY functions. Only DFSORT has these functions, so if you don't have DFSORT, you won't be able to use them. If you do have DFSORT, but you don't have the Dec, 2004 PTF, ask your System Programmer to install it (it's free). For complete details on all of the new DFSORT and ICETOOL functions available with the Dec, 2004 PTF, see:

www.ibm.com/servers/storage/support/software/sort/mvs/pdug/
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm


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