Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

how to know total no of records in pf with out using sql??????

Answers were Sorted based on User's Feedback

how to know total no of records in pf with out using sql??????..

Answer / vijay verma

By using dspfd command you can find out total on record.

dspfd (libname/filename)

here u can find out total no of records.

Is This Answer Correct ?    39 Yes 1 No

how to know total no of records in pf with out using sql??????..

Answer / sree

In addition to the above answer, there are 2 more ways in
knowing the total number of records.

1. Through the RPG program, Open Feedback Information of
File Information data structure (INFSR) will give the count
of records in the physical file.

2. Through CL command, Retrieve Member Description (RTVMBRD)
will give the no.of non-deleted records through NBRCURRCD

Is This Answer Correct ?    24 Yes 0 No

how to know total no of records in pf with out using sql??????..

Answer / kumar vikas


it will count total number of records in pf.. remember, total number of records and not the fields.

Is This Answer Correct ?    13 Yes 0 No

Post New Answer

More DB400 Interview Questions

what is the difference between adding keys & constraints into a phisical file

4 Answers   HSBC,

Last statement of any RPG pgm is LR?

5 Answers  

How to retrieve a physical file after deleting that?

0 Answers  

How to insert more than one record to a pf at a time?(Bulk insert to a pf)

9 Answers  

Suppose I have a pf, it contains 5 members, how to access particular member data from logical file? What is the use of member in pf?

0 Answers  

Is Constent can be define as a key field?

3 Answers  

can we concate fileds in physical file? If yes how can we do?

5 Answers   Patni,

what is error handling concepts in cl

3 Answers   Active Brains,

A pf containing 100 records... my query is how to display from 11th record in the pf?

3 Answers  

CRTDTA AND CRTARA should be used along with?

2 Answers  

How to know the particular record in pf with out reading?

0 Answers  

1. How can I create a LF using crtlf command based on a particular member in a multimember PF? Where I have to specify the member name? 2. How to differentiate between the types of join from a Join logical file DDS. Is it possible to have different types of Join Logical files? 3.Any performance difference between Opnqrf and Embedded SQL? When I should prefer Opnqryf and when SQL? 4. I know access path is the path chosen by the program to retrieve data. It can be of keyed access path or arrival sequence. *IMMED- *IMMED description says access path is updated each time record is added or deleted from a member. - What is updating here? *REBLD - The access path is completely rebuilt each time a file member is opened. The access path is maintained until the member is closed, then the access path is deleted. - I am not able to understand this completely. Could anyone explain these more clearly? 5.What is the purpose of using activation group. I know it is a resource allocator, but other than this any other benefits of using an activation group?

2 Answers   IBM,