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 / swetha p rao
We can handle this using physical file RRN value.When user
enters some options in the first page and takes a pagedown
Read the changes on the subfile using ReadC ie; read the
option entered for that record and save the physical file
RRN value for that record in a temporary file along with
option (You can get RRN value by declaring File information
data structure for that physical file)
When you load the records in the subroutine bfore writing
the values to subfile ,Chain the temporary file with RRN
value and if the RRn is present in the temporary file move
the corresponding option to the Subfile options.
Check this temporary file evrytime you load the records on
subfile and update this temporary file evry time there is a
chnage on the subfile options.
Clear the temporary file when the user confirms delete or
when user doesnt want to delete.
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
How can we override a file during runtime in rpg?
what is kids-rpg?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
How would display prime numbers using CL program?
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
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?
are there any useful c runtime apis that I can call from rpg iv?
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
How Chain operation copies the record's data to the input buffer for the program?
What are the types of identifiers?
what is file information data structure?
What is ment by record level identifier?