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 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