0% found this document useful (0 votes)
421 views1 page

JCL ICEMAN Tip

This document provides instructions to extract records between characters "S" and "E" using the ICEMAN sort program. It includes records that contain "S" and parses each record to extract the portion between "S" and "E". The output shows the extracted portions of three records between "S" and "E".

Uploaded by

sh_07
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
421 views1 page

JCL ICEMAN Tip

This document provides instructions to extract records between characters "S" and "E" using the ICEMAN sort program. It includes records that contain "S" and parses each record to extract the portion between "S" and "E". The output shows the extracted portions of three records between "S" and "E".

Uploaded by

sh_07
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

here is one requirement to fetch a set of record which is between a letter "S" and "E"....

//S1 EXEC PGM=ICEMAN


//SYSOUT DD SYSOUT=*
//SORTIN DD *
11111122S111111111111111E77
22222233S222222222222222E77
333333333333333333333333333
44444455S444444444444444E77
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(1,80,SS,EQ,C'S')
---- this will include the record which
contains a character "S" within 80 byte length
OUTREC PARSE=(%01=(STARTAFT=C'S',ENDBEFR=C'E',FIXLEN=80)), ...this
will extract a record which is between the character "S" and "E"
BUILD=(%01)
/*
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
11111122S111111111111111E77
22222233S222222222222222E77
333333333333333333333333333
44444455S444444444444444E77
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(1,80,SS,EQ,C'S')
---- this will include the record which
contains a character "S" within 80 byte length
OUTREC PARSE=(%01=(STARTAFT=C'S',ENDBEFR=C'E',FIXLEN=80)), ...this
will extract a record which is between the character "S" and "E"
BUILD=(%01)
/*
Output
******************************** Top of Data
***********************************
111111111111111
222222222222222
444444444444444
******************************* Bottom of Data
********************************

You might also like