how can you check for a records existence without causing and i/o (chain/read)?
Answer Posted / 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 |
Post New Answer View All Answers
what are all the contents of subfile?
what does defn do?
is it possible to create a physical file without dds?
how many files can be defined in f specs?
what is the maximum number of fields under a record format of physical file?
what would be the effect on the field where reverse image, underline and highlight display attributes are active ?
when is a tag statement used in rpg?
an access path may be in which sequence?
what does the opcode free do?
i am using non join multiple format my 3 database file is like that pf97 R REC ENAME ETENNO ESTATUS K ENAME pf98 R REC1 ENAME ESAL K ENAME PF99 R REC3 ENAME CRDCARD EID K EID & MY NON JOIN LOGICAL FILE IS ALSO SAME EXCEPT RECORD NAMES BEFORE I TRIED WITH 2 FILES SO ITS SAYS ERROR I.E.(Key field attributes must be same as for previous formats. ) SO I CHANGED KEYFIELD ACCORDING TO PF SO ITS WORKING BUT AFTER ADDING 3 FILES ITS SAYING SAME ERROR . I DONT KNOW I NEW IN AS400 PLLZ HELP ME I HAVE ONE MORE QUE. CANT BE USE DIFFERENT KEYFIELD (NOT ACCORDING TO PF) IN NON JOIN LOGICAL FILE.
What is program status data structure(psds) in as400?
define the purpose of the leave operation?
what are the three line types in rlu ?
what is rpg fixed logic cycle?
what are the different commands used in rlu ?