How can we read a particular record from the database file
which is not having DDS (Flat File). For example, there are
100 records in the flat file. How can we retrive 15th
record in RPG/400 program (Without using CL)

Answer Posted / kamal

EVAL EMPID=15
EVAL=%FOUND(PF NAME)
READ PFNAME
EMPID DSPLY

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2738


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

1094


what was the robotech rpg?

691


how do I declare a table or array in rpg iv?

747


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

1905






Explain mdt?

672


explain sflclr, sflend, sfldlt, and sflcsrrrn?

898


which program rpg or cl is efficent to update a transaction onto a database file and why ?

751


What are the types of identifiers?

579


Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

525


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?

630


How can we override a file during runtime in rpg?

699


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

681


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?

507


How to declare the pull button in AS/400..

1889