how to know total no of records in pf with out using sql??????
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
what is open data base command
1 Answers Active Brains, Cognizant, CSC, CTS,
one physical file can have how many max of logical files? what is the primary file?
When we create a pf and did not fill up maint parameter, then by default which access path will the system take & why?
How can i retrieve city while my i have one field address length 60 but i don't know what where is city in this field ?
Last statement of any RPG pgm is LR?
When we use any keyword like FIFO,LIFO, at file level but whenever we check by runqry we couldn't find answer in FIFO,LIFO,FCFO etc so how we check the answer.
how to add a new field to a file without compiling it?
What is FORMAT keyword and its use?
what is general and type of general
I want to change the attribute of field or want to add new field in existing PF but condition is format level identifier should not change, is it possible?
What is the interactive job? What is the batch job?
In a CL Program after executing a SQL SP how to receive a Output value from the SP. Just to make it clear I am sending 2 input and 1 output parameter to the SQL Stored Procedure. Now while receiving it output parm it is failing.