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

Answer Posted / ttom

Read the file till EOF and check field values using a
condition in a the loop.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

is this a rpg channel?

911


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?

730


How Chain operation copies the record's data to the input buffer for the program?

1331


What is ment by record level identifier?

870


what is the difference between do while and do until?

961


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1766


If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?

847


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

955


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

915


what are the key words you must use when using a subfile?

900


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 a record lock error?

1507


what is kids-rpg?

900


What is file identifier where we can use?

859


how do I preserve and clean the array?

862