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 / shishir

DEAR ITS REALLY SIMPLE U SHOULD TRY IT ON YOUR OWN:
SUPPOSE EMPNO FIELD IS KEY FIELD OF FILE HAVING RECORD :10,20,30,40
SO WAT HAPPEN READP READ PREVIOUS RECORD AND SETLL SEARCHING DATA THROUGH KEYFIELD
SO AFTER READING RECORD 20 IT GOES TO 30 BUT WE ARE SEARCHING FOR 25 WHICH IS NOT PRESENT SO IT WILL RETURN 20 AND OUTPUT
MEANS IF FIELD HAVING DATA LIKE : 10,20,24,30,40
THEN IN THIS TIME OUTPUT WILL ME 24 OK BYE T.C

Is This Answer Correct ?    6 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2146


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

1141


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

815


How would display prime numbers using CL program?

5805


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

1640






explain sflclr, sflend, sfldlt, and sflcsrrrn?

973


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...

1394


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

580


how can I tell when to replace the array?

783


what is *place and *auto keyword in prtf ?plz explain

2825


how do you use commitment control in rpg?

851


how does the rpg element work?

815


what is file information data structure?

1542


what is the difference between do while and do until?

801


What is the purpose of record level identifier?

805