Sure. Here’s an access in free-form: chain(e) Parm1 goofy ; Here’s a fixed-form example:C AKey chain(E) DEMOF And here’s a FETCH in free-form: exec sql fetch programs into rogRec ; Other examples are possible, but you didn’t ask a very clear question nor did you explain what problem you are having. Tom
Wow, that came out looking almost undecipherable.
Nevertheless, you didn’t explain what problem you are having. This is a site for assistance with problems. It’s not a school for teaching programming.
we want to help but it’s a participatory help. You share with us what you can do and we help and guide you ahead.for this question you might research the CHAIN operation.Phil
Check out the on line RPGLE reference manuals at IBM.Look under opcode READ for all the variations.http://publib.boulder.ibm.com/iseries/v5r1/ic2924/books/c0925083.pdfChapter 23 is for the op codesTodd
Sorry link got messed up http://publib.boulder.ibm.com/iseries/v5r1/ic2924/books/c0925083.pdfchapter 23
ok let’s try it this way Chapter 23http://publib.boulder.ibm.com/iseries/v5r1/ic2924/books/c0925083.pdfDon’t know why typing after the link is adding to the link itself even after carriage returns
We are assuming that you are using RPG/IV which is commonly referred to as RPGLE. Not RPG III RPG/400 or RPG II