On Thu, 17 Sep 2020 08:20:07 +0800, Peter Van Dyke wrote:
>
>If you have IBM File Manager you could do what you need with the Data Set
>Copy (DSC) function and an enhanced processing procedure:
>
>$$FILEM DSC  INPUT=DDIN,
>$$FILEM      OUTPUT=DDOUT,
>$$FILEM      PROC=*
>IF FLDI(1,3,C,'GT',"ABC") THEN
>  RETURN STOP IMMEDIATE        /* Stop processing           */
>/+
Does that meet the OP's requirement to copy selected records to OUTPUT?
Is another command necessary?


On Thu, 17 Sep 2020 00:09:58 +0000, Nash, Jonathan S.wrote:
>
>Why not just write a small program ?
>
>COBOL ? 
>
>AWK ? :-) 
>SED :-)
>
 Rexx?

I doubt that any of the scripting languages would meet the OP's
performance need.  COBOL might be OK.

sed and awk don't support Classic data sets (but the OP didn't state
that as a requirement.)

-- gil

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

Reply via email to