220 pts.
 RPG code for read a particular
RPG
I am new to AS/400 pls send me RPG code for reading particular record from a physical file.physical file contain a key field. 


Software/Hardware used:
ASKED: August 29, 2012  4:51 AM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

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 :P rogRec ; Other examples are possible, but you didn’t ask a very clear question nor did you explain what problem you are having. Tom

 108,260 pts.

 

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.
 
Tom

 108,260 pts.

 

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

 44,190 pts.

 

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

 3,915 pts.

 

 

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

 3,915 pts.

 

 

We are assuming that you are using RPG/IV which is commonly referred to as RPGLE.  Not RPG III  RPG/400 or RPG II

 44,190 pts.