I do the same for many listings. I usually download them to my Linux desktop. That way I don't use up precious and expensive MSUs on the z.
One thing that I do with z UNIX and edit is a bit weird. I sometimes what to split every line in a member at a given character, or maybe column. I edit the member in ISPF. I do something like: C ')' '`)' ALL; C '`' X'15' ALL . Or make sure that the split column has a blank in it and convert that to x'15'. x'15' is an EBCDIC NEL, which is the z UNIX end of line character. I then copy all the lines with the CC line command and do a CREATE to a UNIX file. I CANCEL out of the edit and re-edit the member (to not bother with an unnecessary SAVE). I then delete all the lines in the member and COPY the z UNIX file that I previously CREATEd. The lines are now "magically" split where I put in the x'15' bytes. Much easier than doing a lot of :TS commands in EDIT. For more complicated stuff, I use Dovetailed Technologies "fromdsn" and "todsn" to pipe the data into a UNIX command stream to do something. Of course, this requires a TSO OMVS, telnet, or ssh shell session. fromdsn pds(member) | awk ... or some UNIX commands which manipulate STDIN and write to stdout ... | todsn pds(newmem) -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * [email protected] * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM > -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:[email protected]] On Behalf Of Shane > Sent: Thursday, January 06, 2011 7:32 AM > To: [email protected] > Subject: Re: REXX, the new Cobol ? > > Perl/awk/sed ... > I can't remember how long ago it was I wrote an edit macro in anger. > I don't do CGI, but if I did I'd reckon perl would be first > cab off the > rank. > Most recently I needed to compare two catalogs - I can't recall why I > forsaked the CSI, but it was easier to generated cat listings, send > them over to USS and run awk over the output and send it back. > Despite IBMs brain dead C treatment of eof (thanks Bill). > In the past I'd have used REXX, but it doesn't have the regex > capabilities. If I'd only had zLinux available ... > > On Thu, 6 Jan 2011 06:38:25 -0600 > John McKown wrote: > > > What are you using instead? > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html > > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

