In single page subfile,if I select the mutiple options in 1
page and without pressing enter,I press rollup key
(pagedown).In such case how I can handle it in rpg becasue
in single page we have to handle it in pgm. It would be
helpful if any one answer with coding
Answer Posted / ashish kashliwal
We can handle this using arrays. When user
enters some options in the first page and takes a pagedown
then read the changes on the sub-file using READC. first
validate the option, if entered options are valid then in
first array store the fields value (through which we can
identify record as unique in sub-file) and in second array
store the option.
Whenever load the sub-file, then first check if subfile
record is in array (with lookup), then write option equal
to second array value and clear the array element. else
display blank option.
Whenever user press enter (suppose user choose one option
in page one and another option on page 3) then process
option through array.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
How to handle duplicate error handling in RPG?
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?
We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?
thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400
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
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
what is *place and *auto keyword in prtf ?plz explain
how do I declare a table or array in rpg iv?
Explain mdt?
What is file identifier where we can use?
explain sflclr, sflend, sfldlt, and sflcsrrrn?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
What are the types of identifiers?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?