For this question, a CHANGE is indeed quickly done. But, there's one of the best XEDIT add-ons:
- the unmissable the XCOL package: http://www.vm.ibm.com/download/packages/descript.cgi?XCOL Just like XEDIT's prefix commands A, M, F, D, DD etc, that work on lines, XCOL gives you similar commands to work on columns: when you start XCOL, you get a ??????????????????????????? line on which you type these "col" commands So, here after you enter COL * (the * indicates COL works till end-of-file), you get this ???????????????? 09 B32D70 10 B32D80 11 B32D81 12 B32D82 13 B32D83 let's first insert Q DA: ??i Q DA ???????????? (we use the Insert commad, to insert a string right after where you enter the I) 09 B32D70 10 B32D80 11 B32D81 12 B32D82 13 B32D83 The result ???????????????? 09 Q DA B32D70 10 Q DA B32D80 11 Q DA B32D81 12 Q DA B32D82 13 Q DA B32D83 To delete the numbers. One could enter D3 in columns 1 of the ???? line, but even easier: enter D's on all columns to remove ddd???????????????? 09 Q DA B32D70 10 Q DA B32D80 11 Q DA B32D81 12 Q DA B32D82 13 Q DA B32D83 XCOL provides many commands, there is even a command that allows you to re-align data that no longer are placed in a fixed column. No, I didn't write it (except of the Wordflow sub-command). 2011/2/21 Michael Donovan <dono...@us.ibm.com> > There's always the XEDIT "columnar" commands. If the file is really long, > you could run the following macro > > /* IQDA XEDIT */ > 'TOP' > 'NEXT' > 'CLOCATE :1' > 'CDELETE 2' > 'REPEAT *' > 'TOP' > 'NEXT' > 'CINSERT Q DA' > 'REPEAT *' > 'TOP' > > Thanks! > Mike > ----------------------------------------------------------- > The reason lightning doesn't strike twice in the same place > is that the same place isn't there the second time. > - Willie Tyler > > [image: Inactive hide details for "Martin, Terry R. (CMS---02/21/2011 > 03:16:31 PM---Hi I have a bunch of lines in a file and I want to]"Martin, > Terry R. (CMS---02/21/2011 03:16:31 PM---Hi I have a bunch of lines in a > file and I want to insert in the beginning of each line a Q DA comm > > From: "Martin, Terry R. (CMS/CTR) (CTR)" <terry.mar...@cms.hhs.gov> > To: IBMVM@LISTSERV.UARK.EDU > Date: 02/21/2011 03:16 PM > Subject: Xedit question > Sent by: The IBM z/VM Operating System <IBMVM@LISTSERV.UARK.EDU> > ------------------------------ > > > > Hi > > I have a bunch of lines in a file and I want to insert in the beginning of > each line a Q DA command: > > EX: > 09 B32D70 > 10 B32D80 > 11 B32D81 > 12 B32D82 > 13 B32D83 > > I want to insert the following command Q DA in front of each entry. What > is the best way to do this using xedit? > > Q DA B32D70 > > Terry Martin > LockHeed Martin - CITIC > z/OS and z/VM Performance and Tuning - Operating System Support > Cell - 443 632-4191 > Desk - 443 348-2102 > > -- Kris Buelens, IBM Belgium, VM customer support