Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need on code condition samples for underflow & overflow

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Need on code condition samples for underflow & overflow
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    Post subject: why
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Reply to: Need on code condition samples for underflow &
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.

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

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IBM3LR50/17.14?DT=20061026145308
http://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    Post subject: Reply to: Need on code condition samples for underflow &
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts ESQA overflow - high ECSA utilization vasanthz All Other Mainframe Topics 1 Thu Dec 29, 2016 7:06 am
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us