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: 6967
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm


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