How do you know if a record exists without doing a READ and
CHAIN?

Answers were Sorted based on User's Feedback



How do you know if a record exists without doing a READ and CHAIN?..

Answer / avinash

by using file information data structure we can find the
number of records in a file.

Is This Answer Correct ?    18 Yes 0 No

How do you know if a record exists without doing a READ and CHAIN?..

Answer / david lex

setll KeyA FileA;
if %equal( FileA );
...
endif;

Is This Answer Correct ?    8 Yes 0 No

How do you know if a record exists without doing a READ and CHAIN?..

Answer / kcsyam

SETLL with inticator EQ = 1

Is This Answer Correct ?    10 Yes 5 No

How do you know if a record exists without doing a READ and CHAIN?..

Answer / rizwan

Without using Prg if you want to check the records of a Pf
through command line you can use
DSPFD (Display File Description)
which gives you the Total number of records as well as
deleted records in a PF.

Is This Answer Correct ?    5 Yes 1 No

How do you know if a record exists without doing a READ and CHAIN?..

Answer / venkateshp foursoft

PGM PARM(&NBRRCD)
DCL &NBRRCD TYPE(*DEC) LEN(10 0)

RTVMBRD FILE(STR) MBR(*FIRST) +
NBRCURRCD(&NBRRCD)
ENDPGM

Is This Answer Correct ?    3 Yes 0 No

How do you know if a record exists without doing a READ and CHAIN?..

Answer / sravs

We Can Done THis By using Setll with %found also..

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More RPG400 Interview Questions

1.I have a Physical file with 100 records, No duplicates exists, all are Unique,But while i am running Runqry utility i am getting only 80 records..What could be the reason?

3 Answers   Cap Gemini,


difference between CHAIN and READE?

8 Answers   HCL,


what is overlay? how can we pass parameters in cl or rpg programing? how can we get data area value in cl or rpg programming?

2 Answers   IBM, Patni,


What is the purpose of PUTOVR keyword?

2 Answers  


How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?

6 Answers   CSC,






Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfile , from third page i have selected a record and called some other program .on returning, subfile is being loaded from the frist page. so can any one kindly suggest me in retaining my third page after returning. i.e loading from third page.

7 Answers  


When will DUMP & DEBUG be ignored?

3 Answers   IBM,


WHERE DO WE USE COMIT KEYWORD IN AN RPG PROGRAM? YOU MADE SOME CHANGES TO DATABASE BUT YOU DON'T WANT TO SAVE THOSE CHANGES NOW? HOW DO YOU HANDLE THIS ONE?

2 Answers  


What is the difference between inner join @ outer join

4 Answers  


Can anybody tell me, does CL/400 handle LEVEL check while running the CL program....? plz share your experience...

4 Answers  


1.Write code to read the records from a file and load an array of size 99? Make sure that you take care of all the error conditions?

2 Answers   HSBC,


Need a sql query: retrieve all duplicate records in table?

1 Answers  


Categories