1,150 pts.
 Read opcode
Hi Can i use the record format in place of a file name for all types of READs available in RPG/400 along with SETLL n SETGT?

Software/Hardware used:
ASKED: April 27, 2009  10:30 AM
UPDATED: April 29, 2009  2:00 AM

Answer Wiki:
Hi Ten2008 Yes, the READ, SETLL and SETGT can use the FileName or the RecordName, when the record is externally defined. I'm not sure what advantage there would be using the record name. Updates and writes must be to the record name. Phil
Last Wiki Answer Submitted:  April 27, 2009  1:03 pm  by  philpl1jb   44,180 pts.
All Answer Wiki Contributors:  philpl1jb   44,180 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

Hi,

If you have two logical files referencing to same Physical file then its a good practise that you rename the record format name in File Specifications and use them in C Specs using READ,SETLL and SETGT.

However , Phil’s explaination is also right.

Thanks
Siddharth

 635 pts.