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

what is general and type of general

1 Answers   Active Brains,


When u create a PF and did not fill up Maint parameter, then by default which access path will the system take & why

2 Answers   HCL,


what is open data base command

1 Answers   Active Brains, Cognizant, CSC, CTS,


Is Constent can be define as a key field?

3 Answers  


Last statement of any RPG pgm is LR?

5 Answers  






how to see number of logical files depending on a pf?...can we declare more than 20 logical files from a single pf? is it possible

4 Answers   ocbc,


what is exception and how many types of exception

1 Answers   Active Brains,


Where the QTEMP library will get created? if the the answer is QSYS, then howcome more than one job can create same library name(QTEMP) in QSYS? what is the uniqueness of QTEMP? For example, run the below command in different workstation WRKOBJ QSYS/QTEMP And take 8 in the option to check the description. both will have different info. so where(which LIB) exactly the QTEMP is stored?

2 Answers  


i have a PF,it contains 5 members,how to access particular member data from logical file ?and what is the use of member in PF

3 Answers  


how to update physical file using logucal file with example

1 Answers   Wipro,


YOU CAN DELETE THE RECORD SPACE PERMENANTLY IN PHYSICALFILE THROUGH CL?

4 Answers  


how to update physical files using normal logical file

4 Answers  


Categories