View previous topic :: View next topic
|
Author |
Message |
rajrohith
New User
Joined: 15 Apr 2005 Posts: 54 Location: chennai
|
|
|
|
hai all
i want to know abt on condition like fixedoverflow,underflow,overflow,
zerodivide and onerror
pls explain with small coding samples
thanks and regards
raj |
|
Back to top |
|
|
rajrohith
New User
Joined: 15 Apr 2005 Posts: 54 Location: chennai
|
|
|
|
why no reply from anyone
iam waiting for reply
pls send me with examples
thanks regards
raj |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
apparently no-one wants to go to the trouble of finding the stuff in the manual and cut & paste it for you. probably easier if you looked in the pl1 manual yourself. |
|
Back to top |
|
|
rajrohith
New User
Joined: 15 Apr 2005 Posts: 54 Location: chennai
|
|
|
|
i know what is overflow and underflow
but i want to know how to code into program and how to check the condition
thanks and regards
raj |
|
Back to top |
|
|
donateeye Warnings : 2 New User
Joined: 01 Jun 2007 Posts: 62 Location: chennai
|
|
|
|
before declaring the proc just say OVERFLOW: or UNDERFLOW: like that, so that the system will take action for those if it is inside the proc.
for you to handle them, its simple
ON OVERFLOW
BEGIN;
PUT SKIP LIST ('ASFGASDG');
END; |
|
Back to top |
|
|
cheryala
New User
Joined: 20 Mar 2006 Posts: 46
|
|
Back to top |
|
|
donateeye Warnings : 2 New User
Joined: 01 Jun 2007 Posts: 62 Location: chennai
|
|
|
|
Yes, you are right.. they are default.... I just coded to show how it is handled in the program.... I believe there is no harm to declare them even thats the default.... |
|
Back to top |
|
|
|