how to know total no of records in pf with out using sql??????
Answers were Sorted based on User's Feedback
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|
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 the difference between adding keys & constraints into a phisical file
Last statement of any RPG pgm is LR?
How to retrieve a physical file after deleting that?
How to insert more than one record to a pf at a time?(Bulk insert to a pf)
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?
Is Constent can be define as a key field?
can we concate fileds in physical file? If yes how can we do?
what is error handling concepts in cl
A pf containing 100 records... my query is how to display from 11th record in the pf?
CRTDTA AND CRTARA should be used along with?
How to know the particular record in pf with out reading?
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?