Thanks Kolusu,

It worked just as needed
Best regards
Jack

On Tue, 11 Oct 2022 at 05:25, Sri h Kolusu <[email protected]> wrote:

> >> I am trying to use DFSORT to get part of a dataset.
>
> Jack,
>
> Please use the following untested JCL which will give you the desired
> results
>
> //STEP0100 EXEC PGM=SORT
> //SYSOUT   DD SYSOUT=*
> //SORTIN   DD DISP=SHR,DSN=Your.input.FB.121.byte file
> //SORTOUT  DD SYSOUT=*
> //SYSIN    DD *
>   OPTION COPY
>   INREC IFTHEN=(WHEN=GROUP,
>                BEGIN=(26,10,CH,EQ,C'2022/10/08'),
>                  END=(01,10,CH,EQ,C'A TOTAL OF'),
>                 PUSH=(122:ID=8))
>
>   OUTFIL BUILD=(001,121),
>   INCLUDE=(122,8,CH,GT,C' ')
> /*
>
> Thanks,
> Kolusu
>
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to