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 / jeganath

Go for ReadE i.e Read Equals,

give 'Demo' in Factor 1

'Demo' ReadE

it will fetch records equals 'Demo' string in the file, and
also it avoid unnecessary reading of other records, very
effective,


Note: it works only when that field is declared as key in
PF file

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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?

517


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

727


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

751


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

785


can I touch the array during treatments?

767






what is the use of sflnxtchg?

820


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

681


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

2287


How can we know running job is batch or interactive?

663


can you debug ile rpg program using isdb?

748


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

698


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2380


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

1094


What is ment by record level identifier?

668


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1028