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
variable.

Is This Answer Correct ?    25 Yes 0 No

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

Answer / kumar vikas

RUNQRY QRYFILE((lib/pfname)) OUTFORM(*SUMMARY)

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

How to add a field to a PF and compile it without loss of data?

7 Answers  


Is Constent can be define as a key field?

3 Answers  


hi iam very new to as400. i had created one physical file can any one tell command to enter data in to that

9 Answers   Encore,


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

3 Answers  


pls anyone explain about compile time array,pre run time array run time array

4 Answers  






How can we know that a trigger has been added on a PF? and what is the purpose of adding a trigger?

3 Answers  


What is FORMAT keyword and its use?

0 Answers  


How to retrieve a physical file after deleting that ? what is keyword used for that....??

6 Answers  


what is exception and how many types of exception

1 Answers   Active Brains,


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

6 Answers   HSBC,


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,


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

3 Answers  


Categories