ujwalavenu Currently Banned New User
Joined: 07 Feb 2006 Posts: 7 Location: Hyderabad
|
|
|
|
Hi,
Code: |
SORT FIELDS=(5,3,CH,A,27,3,CH,A)
OUTFIL FNAMES=SORTOUT,
OUTREC=(1:1,3,4:5,7,11:27,7,18:47,5,23:52,11)
RECORD TYPE=F,LENGTH=33
|
Please see the above outrec, but I need to insert the one packed decimal byte(value zero) at 18 and
also one packed decimal byte at 23(value zero) as below. Please advice me how to insert packed decimal zero byte.
Total output file length is 33.
Note : 19:47,5 and 24:52,9 also packed decimal.
Code: |
OUTREC=(1:1,3,4:5,7,11:27,7,18,19:47,5,23,24:52,9)
|
00100111110041408..............
00100122220041408.............. |
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You can insert a 1-byte PD 0 value with DFSORT using c:X'0C' or c:+0,TO=PD,LENGTH=1
Note that your OUTREC parameters have an overlap error that you need to fix:
19:47,5,23:
19:47,5 uses positions 19-23 so you can't start the next field at 23. |
|