i have a file with the values 10, 20, 30, 40, if am setll with
the value 25 then readp, so what it will return?

Answer Posted / ardeep

If the SETLL operation is not successful (no records found condition), the file is positioned to the end of the file.

10 20 30 40

So when 25 is searched the pointer goes to 40.

And now when READP (Read Previous) is issued it fetches
30.

Answer is 30.


Have Fun :) !!

Is This Answer Correct ?    5 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2358


explain sflclr, sflend, sfldlt, and sflcsrrrn?

876


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

2263


what is an online rpg?

711


what is the procedure and explain about real time scenario.

1468






what is file information data structure?

1349


How many program bind in one module....

2107


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

2181


How to select highest score of each subject or how to select highest income of every month?

1281


what is the use of sflnxtchg?

793


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

675


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

1067


what is the necessary keyword needed to scroll subfile records?

692


what is the difference between do while and do until?

690


how do I declare a minor?

705