Can we found a record existance in a file w/o reading the file?

Answers were Sorted based on User's Feedback



Can we found a record existance in a file w/o reading the file?..

Answer / srisailam

Yes by using file information data structure

Is This Answer Correct ?    5 Yes 2 No

Can we found a record existance in a file w/o reading the file?..

Answer / srisailam

by using setll and %equal()

Is This Answer Correct ?    2 Yes 0 No

Can we found a record existance in a file w/o reading the file?..

Answer / venky

setll

Is This Answer Correct ?    6 Yes 7 No

Can we found a record existance in a file w/o reading the file?..

Answer / srisailam

yes.by using file information data structure.

Is This Answer Correct ?    1 Yes 2 No

Can we found a record existance in a file w/o reading the file?..

Answer / ravikumar

1.With the help of CHAIN or READ opcodes we can find out record existence.


2.we can find out with the help of FILE INFORMATION DATA STRUCTURE..

Is This Answer Correct ?    0 Yes 1 No

Can we found a record existance in a file w/o reading the file?..

Answer / nkumar

Yes without reading a file we can check the existence of records in a file. There are 3 ways.
1) Type DSPFD and define the file and press enter. Go to las and see the total no of records.

2) Using the file information data structure.

3) Using the RTVMBRD using in the CL program and check teh NBRCURRCD filed value. this will have the total no of records.

Is This Answer Correct ?    3 Yes 5 No

Post New Answer

More RPG400 Interview Questions

In how many ways a session/device error occurs,,, and what is the remedy for it?

3 Answers  


check existence of one record without using chain or read?

1 Answers   IBM,


How Chain operation copies the record's data to the input buffer for the program?

0 Answers   IBM,


Suppose i am having 3 programs PgmA,pgmB,pgmC and using source debugger. At debugging time i found that pgmC having some code error..then in debug mode directly how can i debug pgmC

2 Answers  


HOW TO DEBUG A BATCH JOB WHEN IT IS IN MESSAGEWAIT(MSWG) STATUS.I KNOW THE STEPS FOR BATCH DEBUGGING,BUT IM CONFUSING WITH WHEN WE SUBMIT ANY JOB FOR BATCH DEBUG WE PUT IN HELD STATE.SO HERE ALSO DO SAME THING OR ANY OTHER WAY,PLEASE HELP ME....

1 Answers   HCL, Mind Tree,






1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?

12 Answers   IBM, Opus,


Hi, can any one tell me :IN CASE OF SINGLE PAGE FILE HOW WILL I LOAD THE PREVIOUS PAGE WITHOUT THE USE OF SFLCLR INDICATOR ?

3 Answers   IBM,


how can I tell when to replace the array?

0 Answers   IBM,


can you debug ile rpg program using isdb?

0 Answers   IBM,


How to identify the object has compiled with the debug view as *source without using STRDBG?

6 Answers  


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

0 Answers  


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

11 Answers   CSC,


Categories