i have 1000 records in pf.what are all the ways to read a
particular name records in rpg?? ie.. in pf i have a name
called demo appeared around 52 times hw will we read this
particular records in rpg/400?.

Answer Posted / sudhir

to escape from creating a new object of LF(if its not a
permanent requirement) you can use OPNQRYF to select
whichever records you want like:

OPNQRYF FILE((FILENAME)) QRYSLT('(FIELDNAME *EQ "demo")')

hope you got your answer

Is This Answer Correct ?    5 Yes 2 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

2742


Explain mdt?

680


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

1758


how does the rpg element work?

736


What is a record lock error?

1282






How to write record if no field or the field are different in physical file in rpgle ?

502


can I touch the array during treatments?

771


What is the difference between iter and do?

691


How many program bind in one module....

2140


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

839


what was the robotech rpg?

695


what is the procedure and explain about real time scenario.

1497


What is ment by record level identifier?

670


is this a rpg channel?

693


How to call one program from another program in RPG? please help me with the code

1273