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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts Joinkeys with condition scdinesh DFSORT/ICETOOL 10 Tue Feb 14, 2017 12:20 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm


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