I have file with data as follows
data
1
2
3
4
5
I need to read 1 and 5 ,then 2 and 4 then like..
upto end of file, can any one help on this
Answer Posted / raghav
You can try using pre runtime array and perform lookup operation for the desired result
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
what is the procedure and explain about real time scenario.
How to select highest score of each subject or how to select highest income of every month?
What is file identifier where we can use?
what is the difference between do while and do until?
can I touch the array during treatments?
what is file information data structure?
What is ment by record level identifier?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
how do you use commitment control in rpg?
are there any useful c runtime apis that I can call from rpg iv?
What are the types of identifiers?
what is the necessary keyword needed to scroll subfile records?
what is the use of sflnxtchg?
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.