Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

what is the necessary keyword needed to scroll subfile records?

1137


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

1166


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

946


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

1990


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.

1200


how do I preserve and clean the array?

1130


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

2976


what is the difference between do while and do until?

1229


How to call one program from another program in RPG? please help me with the code

1706


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1862


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

1176


how does the rpg element work?

1206


how can I tell when to replace the array?

1195


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

1121


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

1297