Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1965


How can we override a file during runtime in rpg?

1156


how do I play {insert rpg system here}?

993


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

966


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

1139


what are the key words you must use when using a subfile?

1117


which program rpg or cl is efficent to update a transaction onto a database file and why ?

1209


how does the rpg element work?

1156


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?

911


do you use message subfiles? What are the necessary keywords required coding a message subfile?

1083


What is the purpose of record level identifier?

1087


what is a rpg?

1142


what is the use of sflnxtchg?

1211


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

2360


What is the difference between copybooks and subprocedures in as400?

1314