Can we found a record existance in a file w/o reading the file?
Answer Posted / nkumar
Yes without reading a file we can check the existence of records in a file. There are 3 ways.
1) Type DSPFD and define the file and press enter. Go to las and see the total no of records.
2) Using the file information data structure.
3) Using the RTVMBRD using in the CL program and check teh NBRCURRCD filed value. this will have the total no of records.
| Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
How many program bind in one module....
How to call one program from another program in RPG? please help me with the code
what is *place and *auto keyword in prtf ?plz explain
What is file identifier where we can use?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.
Explain mdt?
What are the types of identifiers?
what is kids-rpg?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
How to select highest score of each subject or how to select highest income of every month?
what is file information data structure?
what are the key words you must use when using a subfile?