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


Please Help Members By Posting Answers For Below Questions

how do I play {insert rpg system here}?

576


How Chain operation copies the record's data to the input buffer for the program?

1070


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...?

1457


How to handle duplicate error handling in RPG?

1666


what is an online rpg?

714






what is data area and how it is used in rpg program ?

748


what is kids-rpg?

659


What is a record lock error?

1256


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?

1443


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1009


how do I declare a table or array in rpg iv?

727


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2511


how do you use commitment control in rpg?

746


can you debug ile rpg program using isdb?

730


When it is desirable to describe files Internally?

1178