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 to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
How can we override a file during runtime in rpg?
how do I play {insert rpg system here}?
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
what are the key words you must use when using a subfile?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
how does the rpg element work?
When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
What is the purpose of record level identifier?
what is a rpg?
what is the use of sflnxtchg?
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
What is the difference between copybooks and subprocedures in as400?