suzeet
New User
Joined: 16 May 2005 Posts: 54
|
|
|
|
I have dataset of 100 LRECL and Fixed Block. In the 4th and 5th postion i have 02 or 03. I want to add a description on 90th position, if 4th postion is 02, then 'two' and if 4th position is 03, then 'three'. Is it possible thru sort? |
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
suzeet,
use the following DFSORT JCL
Code: |
//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DISP=SHR,DSN=Your Input FB 100 byte file
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC OVERLAY=(90:4,2,CHANGE=(5,C'02',C'TWO',C'03',C'THREE'),
NOMATCH=(90,5))
//* |
|
|