If you have a C compiler you can build gawk from source. David Pitts ported it years ago.

On 20/12/21 3:13 am, Farley, Peter x23353 wrote:
I have been using awk from JCL using DD's as script source, input and output 
files for years now.  There is no issue using awk in normal JCL.  I even use a 
gawk script for decoding CSV input that I wrote literally decades ago in my 
JCL-invoked awk steps.

JCL examples available on request.

Mind you, I'd far prefer a gawk implementation than the very limited POSIX awk 
that is currently shipped with z/OS.  Having to write my own time functions to 
try to match the ones supplied by gawk was painful, and the crude versions I 
managed to cobble together for a very business-specific function are far from 
complete or acceptable for general use.

I haven't yet seen gawk on Rocket's ported tools page though (Hey Rocket: Hint! 
Hint!).

Peter

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Nash, Jonathan S.
Sent: Sunday, December 19, 2021 10:28 AM
To: [email protected]
Subject: AWK ? - Re: Top 8 Reasons for using Python instead of REXX for z/OS

Id rather have easy access to AWK than python :-)

On the zos side without any USS involvement..

--

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

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

Reply via email to