1) How to declare a file?
2) How to define a display file?
3) How to monitor error messages in RPG?
4) How to find the attributes for subfiles? and what is the
DDS for subfiles?
Answer Posted / mehul
Answer to 3)
Method 1:
To moniter Error in RPG make use of
MONITIOR
.....
ON-ERROR <some error number>
ENDMON
u can place a subroutine , procedure etc under this to
handle the error for the following
Method 2:
Activate the Error Indicator, for the field you want to
place the error handling
if any error occurs for that field %error is SETON, and u
can use this indicator to take action accordingly
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
how do I play {insert rpg system here}?
How Chain operation copies the record's data to the input buffer for the program?
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 to handle duplicate error handling in RPG?
what is an online rpg?
what is data area and how it is used in rpg program ?
what is kids-rpg?
What is a record lock error?
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?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
how do I declare a table or array in rpg iv?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
how do you use commitment control in rpg?
can you debug ile rpg program using isdb?
When it is desirable to describe files Internally?