how can you check for a records existence without causing and i/o (chain/read)?
Answer / kanckan singh
With the help of File Information Data Structure, we can check existence of records in a physical file. The code is described below:
In File description continuation line (IPFK),
KINFDS RCDS
IRCDS DS
I*RECORD
#RCDS
with the above code we can check the existence of records in a file without causing I/O operation.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is qcmdexc?
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
How to reverse the string in rpg
I need to insert a record in a file using STRSQL containing the some field values same as an already existing record in that file.I know to smple insert mentioning those values one by one.But is there any another query can be prepared for the same .Please share the query if known to you. Thanks in advance.
what is the main use of OPNQRYF ?? in that query why we can use OVERDBF and in that OVERDBY why should we use SHARE(*YES)
what is primarykey?what is difference between primary key and forign key?
what are the two record formats a subfile contain ?
can a indexed file be accessed in arrival sequence in rpg program?
what is the use of data structures?
Is qgpl a user library or system library?
What does SDA stands for ?
if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?