IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need on code condition samples for underflow & overflow


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajrohith

New User


Joined: 15 Apr 2005
Posts: 54
Location: chennai

PostPosted: Thu Aug 09, 2007 4:14 pm
Reply with quote

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
View user's profile Send private message
rajrohith

New User


Joined: 15 Apr 2005
Posts: 54
Location: chennai

PostPosted: Mon Aug 20, 2007 6:25 pm
Reply with quote

why no reply from anyone

iam waiting for reply
pls send me with examples

thanks regards
raj
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Aug 20, 2007 6:58 pm
Reply with quote

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
View user's profile Send private message
rajrohith

New User


Joined: 15 Apr 2005
Posts: 54
Location: chennai

PostPosted: Mon Aug 20, 2007 7:00 pm
Reply with quote

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
View user's profile Send private message
donateeye
Warnings : 2

New User


Joined: 01 Jun 2007
Posts: 62
Location: chennai

PostPosted: Mon Dec 03, 2007 6:22 pm
Reply with quote

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
View user's profile Send private message
cheryala

New User


Joined: 20 Mar 2006
Posts: 46

PostPosted: Wed Jan 02, 2008 6:01 pm
Reply with quote

HI

Quote:
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.


I don't think it is required..as OVERFLOW,UNDERFLOW and ZERODIVIDE conditions are enabled all the times (unless you disable them using appropriate compiler options.

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IBM3LR50/17.24?DT=20061026145308

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IBM3LR50/17.14?DT=20061026145308
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IBM3LR50/17.23?DT=20061026145308

Regards,
Cheryala
Back to top
View user's profile Send private message
donateeye
Warnings : 2

New User


Joined: 01 Jun 2007
Posts: 62
Location: chennai

PostPosted: Wed Jan 02, 2008 9:55 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Monitoring production job progress. N... JCL & VSAM 4
Search our Forums:

Back to Top