suppose i i am changing / updating record of subfile and i
want to change the record in reverse order . means i want to
change the bottom record first and so on through readc . how i
do it please any one explain .
Answers were Sorted based on User's Feedback
Answer / maheshg
better to have multi occurance of DS load all the record
which is read through READC and read DS in reverse oreder
for changing / updating.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / baggy
That is possible by using embedded sql to fetch the data
using CURSORS to subfile and group by ASCEND or DESCEND
| Is This Answer Correct ? | 1 Yes | 1 No |
what is file information data structure?
A particular job executing on the iS is not behaving as expected and is operating in an environment in which it can be debugged. What commands would you use to debug and observe the program?
How can we override a file during runtime in rpg?
what is the difference between do while and do until?
How can i keyed a flat file in RPGLE
How to code Page up and Page down in RPG for Single page subfile without using ROLLUP/ROLLDOWN in DSPF ?
What is the compilation option that has to he specified while compiling an RPC program which uses a file having date data type field?
What are the commands that can be executed in CLP but not in RPG? Why?
How to read data from Nth member of a physical file containing some X number of members in it? "Provided member names are unknown"
wat is the difference between array and multiple occurence data structure?
How can you delete a record from a file in RPG without using DELETE oppcode?
i 'm new to as/400.in an interview i was asked this question.give a practical example for passing information or data through local data area. I know only that data area is an object used to store tiny bits of data or it can store one value at a time and it is used to store frequently changing values or datas.thats all i know about data area can any one tell me how local data area and user defined data area are used to pass data between jobs with a example or coding.thanks in advance.