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 |
difference betwen keywords and opcodes
Difference between RESET and CLEAR
How can i keyed a flat file in RPGLE
Suppose you have 3 members in a database file. How to read records from all the members without using CL (OVRDBF) i.e. Entire process should be handled exclusively in a RPG program?
HI, 1: WHAT IS THE FUNCTION OF %KDS?WITH PROGRAMMING CODES EXAMPLE 2: WHAT IS THE FUNCTION OF Z-ADD AND Z-SUB ? WITH PROGRAMMING CODES EXAMPLE
How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??
WHAT IS MONMSG IDENTIFIER FOR STRTCPFTP command IN cl (as/400)?
how do u find whether a record is locked or not??/
what is data area and how it is used in rpg program ?
Difference between creating a report using Printer file and WRKQRY(Query Report) ?
How to search particular records from the database file in rpg?
1. Which Built-In-Function will you use to achieve the following functionality? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2++÷ResultLenDHHiLoEq C QTY IFLT *ZERO C QTY MULT -1 QTY C ENDIF a) %ABS b) %TRIM c) %TRIMS d) %UNS