Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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:
Use [URL] BBCode for External Links |
|