Indeed, Rexx is an option but not the fastest tool in the box. And I don't know 
about sed but z/OS awk (perhaps not intentionally) does indeed support 
"classic" datasets via DD.

Peter

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Paul Gilmartin
Sent: Wednesday, September 16, 2020 9:16 PM
To: [email protected]
Subject: Re: SORT selection question

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.)

--

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


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

Reply via email to