Can we found a record existance in a file w/o reading the file?
Answers were Sorted based on User's Feedback
Answer / ravikumar
1.With the help of CHAIN or READ opcodes we can find out record existence.
2.we can find out with the help of FILE INFORMATION DATA STRUCTURE..
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / 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 |
what is the difference between the cpyf command crtdupobj command?
what is plat file?
what are the types of identifers
In case if I want to know whether a record exists in a file, which one do you prefer CHAIN or a SETLL and why ?
How many program bind in one module....
In single page subfile,if I select the mutiple options in 1 page and without pressing enter,I press rollup key (pagedown).In such case how I can handle it in rpg becasue in single page we have to handle it in pgm. It would be helpful if any one answer with coding
4 Answers Infinite Computer Solutions,
How to print output from openquery in as400 ?
what is EXCEPT command in rpg and use
Is it possible to call a subfile using CL. IF yes.. kindly help me out with explanation...?
How to print Superscript / Subscript from RPG400
what is the difference between the procedure and module in ILERPG?
1.What is the Maximum field length we can declare in RLU?? 2. What is the difference if your designing RLU using DDS and using the option 19 for the RLU??