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 |
How do you do indexing in a physical file?
In a particular program one file is used where override command is applied to a file, now this program calls another program where we want to use the same file but without override.How it can be done?
Explain mdt?
One of the job in subsystem is in Running status,expected time to complete this job is 2 minutes. But from last 5 -10 minutes this job is still in running status....What are the possible reasons...and What are the actions i need to perform to check this...?
How can we read a particular record from the database file which is not having DDS (Flat File). For example, there are 100 records in the flat file. How can we retrive 15th record in RPG/400 program (Without using CL)
Anybody can explain the difference between SFLCLR & SFLINZ?
what is EXCEPT command in rpg and use
What is the Record Address file. How can we use it in RPG program?
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 create a key field for a logical file inside RPG?
what will happen two jobs have same name are submitted
1.find most occurrences of a character. for exm: input:aaabbbbdddddyyy output: d 5 times how can i get that?