I want to run few CHANGE commands on list of source members and add some logic to the CHANGE commands - e.g.
if a source line contains 'AAA' then do CHANGE 'BBB' to 'CCC'
I want to be able to run it in Foreground and Batch.
For those of you who understand z/VM or Z/os - I am looking for something like Xedit Macro or Ispf Edit Macro.
Is it possible ?
thanks
Software/Hardware used:
ASKED:
November 17, 2005 10:22 PM
UPDATED:
November 20, 2009 7:34 AM
A source member consists of 3 fields: ‘SRCSEQ’, ‘SRCDAT’, and ‘SRCDTA’. SRCDTA contains the source statement. You could use SQL or RPG to parse the area that you want and change the data.
Or simply code a Qshell script. There’s not much point in using SEU (or any similar editor) to do this kind of function. Just because some editors allow it doesn’t mean that every editor will. Use a facility that’s reasonably available on multiple platforms and is expected to work the same everywhere it’s available.
Something like REXX for example.
Tom