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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of identifiers?

563


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2509


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

3264


is this a rpg channel?

665


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

822






How to write record if no field or the field are different in physical file in rpgle ?

471


How many program bind in one module....

2107


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1441


can you debug ile rpg program using isdb?

730


how do I declare a table or array in rpg iv?

725


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

746


do you use message subfiles? What are the necessary keywords required coding a message subfile?

677


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1550


What is a record lock error?

1254


what are the key words you must use when using a subfile?

680