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


Please Help Members By Posting Answers For Below Questions

Difference Between Call & Sbmjob?

778


define subsystem?

1035


Difference Between Skip Before & Space Before?

674


What are the mandatory keywords of sub file?

748


how can I control the way a remote browser uses its cache?

611






how does union file maintains record formats?

631


what is sflpag and sflsiz ?

2290


what is the sequence when using cursor?

607


is it there an easy way to determine if an html section is available to issue a wrtsection upon?

567


which are the figurative constants used in rpg?

845


how many files can be defined in f specs?

1416


how do you specify the number of records to roll in a subfile ?

1249


how do u compile rpgle program?

628


how do you use exceptional write in c specs?

1153


how can you execute a command from within an rpg program without calling a clp program?

1203