0 pts.
 STRSEU macro – how to run Repetitive tasks on source members
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

Answer Wiki:
Perhaps there is a way in SEU I am unaware of. Remember, source members are 92 (or 112) record length physical file members. Therefore you could use a CL OVRDBF and an SQL script to accomplish this. Not elegant but functional...
Last Wiki Answer Submitted:  November 18, 2005  8:34 am  by  Slewisbcc   0 pts.
All Answer Wiki Contributors:  Slewisbcc   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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.

 0 pts.

 

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

 108,025 pts.