How do you find out whether a record is present in the
physical file without reading the file?
for Example Employee No: 100 in an Employee master.How do
we find out whther 100 is present in Employee master
without reading the file?

Answers were Sorted based on User's Feedback



How do you find out whether a record is present in the physical file without reading the file? f..

Answer / samul paul

With the help of SETLL using EQ indi,we can check the
existance of record wihtout reading the file.

Is This Answer Correct ?    35 Yes 0 No

How do you find out whether a record is present in the physical file without reading the file? f..

Answer / kaka halwai

100 SETLL Employee master
IF %EQUAL(Employee master)
record is found
Else
Record is not found..
Endif

:-)

Is This Answer Correct ?    5 Yes 0 No

How do you find out whether a record is present in the physical file without reading the file? f..

Answer / rashmimalpani

You can do SETLL and then use %found to check whether the
record exist in the file.

Chain itself does the SETLL operation on the file and reads
the subsequent record if match is found.

Is This Answer Correct ?    14 Yes 11 No

How do you find out whether a record is present in the physical file without reading the file? f..

Answer / ld123q44

SETLL described by everyone above is the answer provided the
file has an index by Employee No.

Is This Answer Correct ?    3 Yes 1 No

How do you find out whether a record is present in the physical file without reading the file? f..

Answer / spmk

Hi.....
With the help of 'File information data structure'
we can find the existence of record in physical file.

Is This Answer Correct ?    4 Yes 3 No

How do you find out whether a record is present in the physical file without reading the file? f..

Answer / no

Using I spec.

Is This Answer Correct ?    1 Yes 0 No

How do you find out whether a record is present in the physical file without reading the file? f..

Answer / dinesh

hi....
do setll and then use %found if there are record
exit in file then it will display recrd

Is This Answer Correct ?    6 Yes 9 No

How do you find out whether a record is present in the physical file without reading the file? f..

Answer / srinivas

100 chain filename
if %found
dsply the record
else
display the norerord
endif

or

Is This Answer Correct ?    1 Yes 5 No

How do you find out whether a record is present in the physical file without reading the file? f..

Answer / prasanna

If you Request was thru program then you can do it by SETLL
else DSPPFM or DSPF command

Is This Answer Correct ?    1 Yes 6 No

How do you find out whether a record is present in the physical file without reading the file? f..

Answer / venkatesh p

*loval setll file
read recor 70

in indicator on norecords in file ,else records in file

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More RPG400 Interview Questions

When will DUMP & DEBUG be ignored?

3 Answers   IBM,


How do you call procedures in ILE?

3 Answers  


what do you mean by SESSION/DEVOCE ERROR?

1 Answers   IBM,


In single page subfile,if I select the mutiple options in 1 page and without pressing enter,I press rollup key (pagedown).In such case how I can handle it in rpg becasue in single page we have to handle it in pgm. It would be helpful if any one answer with coding

4 Answers   Infinite Computer Solutions,


can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com

0 Answers  






How many program bind in one module....

0 Answers  


How to find d key field of a pf that doesn’t have source physical file?

2 Answers  


what is file identifier wher we can use

1 Answers   IBM,


How to handle duplicate error handling in RPG?

0 Answers  


Suppose I have 3 jobs a b and c. I want to submit b after successful completion of a and want to submit c after successful completion of b. Without using job scheduler or job queue, how can I do that through cl program?

1 Answers  


what built in function can be used with SETLL.If you want to check whether the search argument is successful or not? Please give me answer with example?

3 Answers  


What would be the result on writing a data record to a PF file using the "WRITE" opcode after the SETON *ON *INLR statment?

10 Answers  


Categories