Hi SORT experts, I have tried something I thought was simple, but keep running into problems. I must have missed something along the way, and I am sure you will pick it up quite easily. My input is a file of old and new names: Pos 1-32 : Oldname Pos 34-66 : Newname OLDNAME1 NEWNAME1 OLD-NAME-NUMBER2 NEW-NAME-NUMBER2 OLD3 NEW3
The output I want is four lines of transactions for each line of input: Line 1: -UPD AREA,<the oldname goes here> (PROD) Line 2: 1000 ALTER Line 3: 1500 NEWNAME,<the new name goes here> Line 4: -END So for the above, I would expect this output: -UPD AREA,OLDNAME1 (PROD) 1000 ALTER 1500 NEWNAME,NEWNAME1 -END -UPD AREA,OLD-NAME-NUMBER 2 (PROD) 1000 ALTER 1500 NEWNAME,NEWNAME2 -END -UPD AREA,OLD3 (PROD) 1000 ALTER 1500 NEWNAME,NEW3 -END I keep getting syntax errors in my INREC, probably because I have not done this before and have forgotten something. Can someone lend a hand? Thanks! Don Don Johnson Sr. Principal Support Engineer | MSD - Datacom product family CADRE/Datacom Community Champion Broadcom Software office: 609.493.5891 | mobile: 304.237.8439 [email protected] | broadcom.com Twitter <https://twitter.com/BroadcomSW> | LinkedIn <https://www.linkedin.com/company/broadcomsoftware> -- This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
