Maybe use an awk acript to change it? Use the dreaded BPXBATCH or its replacement from JZOS to execute the script in batch.
Peter -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Jousma, David Sent: Friday, February 19, 2016 3:33 PM To: [email protected] Subject: JCL sample needed All, Been scratching my head all afternoon on this. I have a text file in mainframe unix filesystem that is ascii format. Bottom line is that in batch, I need to do a find/replace for certain data in it. Interactively, I know I can do it via ISPF with the EA(edit ASCII) command. But I need to do it in batch, so unless someone has a clever way to do it, I'm thinking I need to copy it out to flat file, convert to EBCDIC, make the changes, and then copy it back to the unix filesystem from whence it came, converting it back to ascii and doing it in batch. Tried ICETOOL with OUTREC...BUILD...TRAN=ATOE, tried FTP, but don't seem to have the correct incantation to make that work, and I've tried OGETX, but no good results. Does anyone have some hints/tips to accomplish? Thanks, Dave -- 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
