We have a S/390 running VM/VSE. We use XEDIT for the VM editor. We are converting to an iSeries. In XEDIT, we have...
a ZZ line command that does either a single line copy (Z) or a block copy (ZZ on starting line and ZZ on ending line). The copied lines are written to a separate file so that these lines can be inserted in any source member as many times as needed by using the ZF (Z following or Z before). The copied lines are cleared from the file by doing a ZZ CLR. How can we do something similar to this in SEU on the iSeries? There is no equivalent SEU line command. However, it is possible to write an SEU Exit Program which will provide the Z/ZZ line commands in SEU. Read the SEU manual for information on how to create such a program. I have an example, which is too large to include here, which inserts lines from other source members.
(There appears to be a limitation to the number of lines which can be inserted in this way, which I have not yet found a way around -- maybe someone else can help me!)
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Ask your programming questions--or help out your peers by answering them--in our live discussion forums.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.
Dig Deeper on RPG iSeries programming
Related Q&A from John Blenkinsop
When an error occurs on an IBM command, the diagnostic messages are sent first, then an escape message, which you can monitor. On AS/400 you see the ...continue reading
Learn how to 'append data to the file' with the FTP DIR command, and eliminate the hassle of having to end the FTP session and restart to view ...continue reading
RPGIV will 'think of' incoming integer fields as binary, and then will redefine them in the program structures as PACKED. So, when you chain a record...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.