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 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.
Interviewer asked me write down DDS for load all subfile .can anybody write dds
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
How would display prime numbers using CL program?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
explain sflclr, sflend, sfldlt, and sflcsrrrn?
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...
How to write record if no field or the field are different in physical file in rpgle ?
how can I tell when to replace the array?
what is *place and *auto keyword in prtf ?plz explain
how do you use commitment control in rpg?
how does the rpg element work?
what is file information data structure?
what is the difference between do while and do until?
What is the purpose of record level identifier?