how we retrieve records without using key field (ex:name)
from Physical File through RPG in as/400?

Answer Posted / ld123q44

The question is how you retrieve records from externally
defined files without using a key.

You can do this by designating the file as a primary file in
the program.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how does the rpg element work?

953


How can we know running job is batch or interactive?

880


do you use message subfiles? What are the necessary keywords required coding a message subfile?

915


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

745


What is the difference between copybooks and subprocedures in as400?

1100


what is a rpg?

925


what is the necessary keyword needed to scroll subfile records?

927


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2277


how can you display specific subfile page on the screen in unequal subfile?

917


are there any useful c runtime apis that I can call from rpg iv?

926


How can we override a file during runtime in rpg?

934


what do you mean by an input subfile, what are the keywords required?

1039


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

1719


What is ment by record level identifier?

870


What are the types of identifiers?

782