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

Is Constent can be define as a key field?

3 Answers  


Which keyword is used both in subfile and subfile control record format of a DSPF?

8 Answers  


how can i know logical file belongs to which physical file without source?

3 Answers   Cap Gemini,


Maximum how many fields we can create under a record format of PF?

5 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,






WHAT IS THE DIFFERENCE BETWEEN 'COLHDG' AND 'ALIAS'?

5 Answers   Accenture,


How to change the batch job to interactive job?

0 Answers  


can any one tell me what is meant by PSSR? Kindly elaborate it...

1 Answers  


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

4 Answers   HSBC,


how to eliminate the level check error

2 Answers   TCS,


Can we concatenate fields in physical file? If yes how can we do?

0 Answers  


can any one pls tell me some differences between a LF and command OPNQRYF?

3 Answers   Accenture, Cognizant, eFunds,


Categories