How do you know if a record exists without doing a READ and
CHAIN?

Answer Posted / rizwan

Without using Prg if you want to check the records of a Pf
through command line you can use
DSPFD (Display File Description)
which gives you the Total number of records as well as
deleted records in a PF.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we override a file during runtime in rpg?

677


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.

2270


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

681


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?

495


Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

4196






What is the difference between iter and do?

663


how do I declare a minor?

707


how does the rpg element work?

711


how can I tell when to replace the array?

692


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

762


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?

1444


How would display prime numbers using CL program?

5669


How to handle duplicate error handling in RPG?

1668


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

669


What are the types of identifiers?

564