Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
I think you still have the output wrong. For example, the first line of the output should be:
| Code: |
110;[00;01;00;00;00;00;00;];
|
Given that, here's a DFSORT job that will do what you want:
| Code: |
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (FB/60)
//SORTOUT DD DSN=... output file (FB/63)
//SYSIN DD *
OPTION COPY
INREC IFTHEN=(WHEN=INIT,
BUILD=(1,3,C';[',5,2,X,7,2,X,9,2,X,
11,2,X,13,2,X,15,2,X,17,2,X,
19,2,X,21,2,X,23,2,X,25,2,X,27,2,X,29,2,X,
31,2,X,33,2,X,35,2,X,37,2,X,39,2)),
IFTHEN=(WHEN=INIT,
OVERLAY=(6:6,53,SQZ=(SHIFT=LEFT,MID=C';',TRAIL=C';];',
LENGTH=58)))
/*
|
If the input file had:
| Code: |
110 00010000000000
120 00000100000000
130 000000010000000000
140 0000000001000000000000
150 00000000000100
160 00000000000001
170 01010000000000000000
210 00010100000000
220 010203040506070809101112131415161718
|
The output file would have:
| Code: |
110;[00;01;00;00;00;00;00;];
120;[00;00;01;00;00;00;00;];
130;[00;00;00;01;00;00;00;00;00;];
140;[00;00;00;00;01;00;00;00;00;00;00;];
150;[00;00;00;00;00;01;00;];
160;[00;00;00;00;00;00;01;];
170;[01;01;00;00;00;00;00;00;00;00;];
210;[00;01;01;00;00;00;00;];
220;[01;02;03;04;05;06;07;08;09;10;11;12;13;14;15;16;17;18;];
|
If that's not what you want, then you need to do a better job of explaining what you do want. |
|