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

Answer Posted / gk

We can read the records from the file directly without any
key field.

*LOVAL SETLL XXXX
READ XXXX
Put it in the DO loop and check for the EOF.

Hope you have got the answer.

Is This Answer Correct ?    9 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1461


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.

2058


What is difference between bind by copy and bind by reference?

1740


what is kids-rpg?

675


what is *place and *auto keyword in prtf ?plz explain

2732






How would display prime numbers using CL program?

5686


what is the necessary keyword needed to scroll subfile records?

707


how does the rpg element work?

724


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

501


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

679


what was the robotech rpg?

689


How can we know running job is batch or interactive?

660


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1321


What is a record lock error?

1274


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

705