Command ===> Scroll ===> CSR
000051 //SYSOUT DD SYSOUT=*
000052 //SYSPRINT DD SYSOUT=*
000053 //SYSIN DD *
000054 SORT FIELDS=COPY
000055 INCLUDE COND=(1,27990,SS,EQ,X'0908') INCLUDE ALL RECORDS HAVING X'0908'
000056 INREC PARSE=(%01=(STARTAFT=X'0908',ENDBEFR=X'0908',FIXLEN=161), BUILD 161 BYTES AFTER EACH OCCURRENCE OF X'0908'
000057 %02=(SUBPOS=2,STARTAFT=X'0908',ENDBEFR=X'0908',FIXLEN=161),
000058 %03=(SUBPOS=2,STARTAFT=X'0908',ENDBEFR=X'0908',FIXLEN=161),
000059 %04=(SUBPOS=2,STARTAFT=X'0908',ENDBEFR=X'0908',FIXLEN=161),
000060 %05=(SUBPOS=2,STARTAFT=X'0908',ENDBEFR=X'0908',FIXLEN=161),
000061 %06=(SUBPOS=2,STARTAFT=X'0908',ENDBEFR=X'0908',FIXLEN=161),
000062 %07=(SUBPOS=2,STARTAFT=X'0908',ENDBEFR=X'0908',FIXLEN=161),
000063 %08=(SUBPOS=2,STARTAFT=X'0908',ENDBEFR=X'0908',FIXLEN=161)),
000064 BUILD=(6,5, BUILD RECORD AND STACK 161 BYTES AFTER EACH X'0908'.
000065 8,5,
000066 31,2,
000067 %01,%02,%03,%04,%05,%06,%07,%08)
000068 /*
000069 //*
000070 //*********************************************************************
000071 //* JS030 - PICK THE DAT FROM REQUIRED POSITIONS.
000072 //*********************************************************************
000073 //*
000074 //JS030 EXEC PGM=SORT,COND=(0,NE)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3 Line(s) not Displayed
000078 // DISP=(NEW,CATLG,DELETE),
000079 // UNIT=DISK,
000080 // SPACE=(CYL,(01,2),RLSE),
000081 // LRECL=1500,RECFM=FB,DSORG=PS
000082 //*
000083 //SYSOUT DD SYSOUT=*
000084 //SYSPRINT DD SYSOUT=*
000085 //SYSIN DD *
000086 SORT FIELDS=COPY
000087 INCLUDE COND=(13,2,CH,EQ,L(C'01',C'02',C'03',C'04',C'05',C'06', INCLUDE RECORDS WHICH ARE HAVING SUFFIX
000088 C'07',C'08',C'09',C'10',C'11'),OR, '01 TO '11' 2 BYTES.
000089 174,2,CH,EQ,L(C'01',C'02',C'03',C'04',C'05',C'06',
000090 C'07',C'08',C'09',C'10',C'11'),OR,
000091 335,2,CH,EQ,L(C'01',C'02',C'03',C'04',C'05',C'06',
000092 C'07',C'08',C'09',C'10',C'11'),OR,
000093 496,2,CH,EQ,L(C'01',C'02',C'03',C'04',C'05',C'06',
000094 C'07',C'08',C'09',C'10',C'11'),OR,
000095 657,2,CH,EQ,L(C'01',C'02',C'03',C'04',C'05',C'06',
000096 C'07',C'08',C'09',C'10',C'11'),OR,
000097 818,2,CH,EQ,L(C'01',C'02',C'03',C'04',C'05',C'06',
000098 C'07',C'08',C'09',C'10',C'11'),OR,
000099 979,2,CH,EQ,L(C'01',C'02',C'03',C'04',C'05',C'06',
000100 C'07',C'08',C'09',C'10',C'11'))
000101 INREC IFTHEN=(WHEN=(13,2,CH,EQ,L(C'01', CHECK IF SUFFIX BYTES PRESENT AT 13TH BYTE FIRST OCCURRENCE
000102 C'02', IF YES THEN BUILD THE RECORD, IF NO THEN GO TO NXT IFTHEN
000103 C'03',
000104 C'04',
000105 C'05',
000106 C'06',
000107 C'07',
000108 C'08',
000109 C'09',
000110 C'10',
000111 C'11')),
000112 PARSE=(%01=(ABSPOS=13,FIXLEN=161)), PICK THE DATA AFTER VALID X'0908'
000113 BUILD=(1,12,%01)), BUILD THE RECORD.
000114 IFTHEN=(WHEN=(174,2,CH,EQ,L(C'01', CHECK IF SUFFIX BYTES PRESENT AT 1174 BYTE 2ND OCCURRENCE
000115 C'02',
000116 C'03',
000117 C'04',
000118 C'05',
000119 C'06',
000120 C'07',
000121 C'08',
000122 C'09',
000123 C'10',
000124 C'11')),
000125 PARSE=(%02=(ABSPOS=174,FIXLEN=161)),
000126 BUILD=(1,12,%02)),
000127 IFTHEN=(WHEN=(335,2,CH,EQ,L(C'01',
000128 C'02',
000129 C'03',
000130 C'04',
000131 C'05',
000132 C'06',
000133 C'07',
000134 C'08',
000135 C'09',
000136 C'10',
000137 C'11')),
000138 PARSE=(%03=(ABSPOS=335,FIXLEN=161)),
000139 BUILD=(1,12,%03)),
000140 IFTHEN=(WHEN=(496,2,CH,EQ,L(C'01',
000141 C'02',
000142 C'03',
000143 C'04',
000144 C'05',
000145 C'06',
000146 C'07',
000147 C'08',
000148 C'09',
000149 C'10',
000150 C'11')),
000151 PARSE=(%04=(ABSPOS=496,FIXLEN=161)),
000152 BUILD=(1,12,%04)),
000153 IFTHEN=(WHEN=(657,2,CH,EQ,L(C'01',
000154 C'02',
000155 C'03',
000156 C'04',
000157 C'05',
000158 C'06',
000159 C'07',
000160 C'08',
000161 C'09',
000162 C'10',
000163 C'11')),
000164 PARSE=(%05=(ABSPOS=657,FIXLEN=161)),
000165 BUILD=(1,12,%05)),
000166 IFTHEN=(WHEN=(818,2,CH,EQ,L(C'01',
000167 C'02',
000168 C'03',
000169 C'04',
000170 C'05',
000171 C'06',
000172 C'07',
000173 C'08',
000174 C'09',
000175 C'10',
000176 C'11')),
000177 PARSE=(%06=(ABSPOS=818,FIXLEN=161)),
000178 BUILD=(1,12,%06)),
000179 IFTHEN=(WHEN=(979,2,CH,EQ,L(C'01',
000180 C'02',
000181 C'03',
000182 C'04',
000183 C'05',
000184 C'06',
000185 C'07',
000186 C'08',
000187 C'09',
000188 C'10',
000189 C'11')),
000190 PARSE=(%07=(ABSPOS=979,FIXLEN=161)),
000191 BUILD=(1,12,%07))
000192 /*
000193 //*