check existence of one record without using chain or read?



check existence of one record without using chain or read?..

Answer / amit

Use setll with %equal to check if the record exists or not.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

RPG/400 number of Records present in a physical file using file information data structure FPF001 IP E DISK F KINFDS INFDS1 IINFDS1 DS I *RECORD RECORD Is this coding correct sir,i have given I P E that is I- input,P-primary file,E-externally described. Primary to use RPG logic cycle,is this the correct method because we have to find number of records present using file information data structure in RPG/400 without doing any input/output operations on the file and also without using DSPFD,SQL. If the above coding is correct means,when i compile the program it gets compiled,but if i call the program it does not return anything,i need number of records,please complete the coding sir.

1 Answers   IBM,


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?

11 Answers   Bank Of America, CSC, IBM,


How can we override a file during runtime in RPG? Without using OVRDBF or calling a CL program

1 Answers   UST,


How to create a key field for a logical file inside RPG?

4 Answers   HSBC,


How to update only a field of a PF in an RPG program. I don't want to update the record, only one field.

2 Answers  


If record-format name in an externally-described file has already been defined as a file-name.how to solve this?

2 Answers   CTS,


Interviewer asked me write down DDS for load all subfile .can anybody write dds

0 Answers  


Some times While checking MSGW for object / member / record locks ,I have seen it's locked by itself ...? How it happen and what action we need to perform if job is updating / writing a record....?

6 Answers   HSBC,


I want to add 10 days in current date. how it is possible in CL program...?

11 Answers   CSC,


difference betwen keywords and opcodes

3 Answers  


1.Coding in cl to send an message? 2..What is turnover and use? What are the different levels?

4 Answers   IBM,


Can a indexed file be accessed in arrival sequence in RPG?

1 Answers  


Categories