STRSEU macro – how to run Repetitive tasks on source members

pts.
Tags:
AS/400
CLP
RPG
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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…

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • HowieK
    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 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following