kalais
New User
Joined: 18 Apr 2006 Posts: 22
|
|
|
|
Hi,
I need to know the use of EDIT parameter provided in the SORT control card as
OUTREC FIELDS=(1:1,4,5:7,8,13:252,2,BI,EDIT=(TT),15:254,44)
Thanks,
Kalai |
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
13:252,2,BI,EDIT=(TT)
Converts the 2-byte BI field at positions 252-253 of the input record to two EBCDIC digits at positions 13-14 in the output record. Examples: X'0001' -> '01', X'0015' -> '21', X'0100' -> '56'. Note that the 2 digits allowed by TT will cause the value to be truncated on the left if it's above 99 (X'0063'). That's why X'0100' will give '56' instead of '256'. The largest 2-byte BI value is X'FFFF' = 65535 and requires 5 digits -> EDIT=(TTTTT). |
|