Sunteți pe pagina 1din 6

iSeries EXTRA: Ending those Decimal Data Error Blues | IBM i | IBM Sy...

1 of 6

http://www.ibmsystemsmag.com/ibmi/july03/enewsletterexclusive/13470...

Administrator
Backup and Recovery
DB2
High Availability
LPAR
Networks
Performance
Security
Systems Management
Tivoli
Trends
AIX
Linux
Open Source
What's New
Tips & Techniques
Application Development
Systems Management
Miscellaneous
Case Studies
Automotive
Healthcare
Manufacturing
Miscellaneous
Non-profit
Retail
Storage
Disk
Servers
Software
Tape
Product News
Buyer's Guide
Administrator
Backup and Recovery
DB2
Domino
High Availability
LPAR
Networks
Performance
Printing
Security
Systems Management
WebSphere
Windows Integration

Trends
IBM Announcements
Linux
Open Source
SOA
What's New

9/27/2010 8:58 AM

iSeries EXTRA: Ending those Decimal Data Error Blues | IBM i | IBM Sy...

2 of 6

http://www.ibmsystemsmag.com/ibmi/july03/enewsletterexclusive/13470...

Storage
Disk
Optical
Servers
Tape
Product News
Product Reviews

Administrator
Backup and Recovery
CICS
DB2
High Availability
IMS
LPAR
Migration
Networks
Performance
Security
Systems Management
Tivoli
Trends
Linux
Open Source
Security
SOA
What's New
z/OS
z/VM
Tips & Techniques
Application Development
Systems Management
Case Studies
Automotive
Banking/Finance
Healthcare
Insurance
Manufacturing
Miscellaneous
Retail
Storage
Disk
Servers
Software
Tape
Product News
Stop Run
Buyer's Guide Main Page

9/27/2010 8:58 AM

iSeries EXTRA: Ending those Decimal Data Error Blues | IBM i | IBM Sy...

3 of 6

http://www.ibmsystemsmag.com/ibmi/july03/enewsletterexclusive/13470...

Business Strategy
Competitive Advantage
Consolidation
Executive Perspective
Green IT
Migration
Open Source
ROI
Infrastructure
Blades
Storage
Systems Management
Case Studies
Distribution
Healthcare
Manufacturing
Services
Web 2.0
Cloud
Social Media
Trends
Collaboration
IBM Announcements
IBM Research
Open Source
Social Media
What's New
Product News

AIX
MAINFRAME
POWER
Newsletters
About Us

Subscribe
Current Issue
Archive

IBM i
ALL EDITIONS
ADMINISTRATOR
DEVELOPER
TRENDS
TIPS & TECHNIQUES
CASE STUDIES

9/27/2010 8:58 AM

iSeries EXTRA: Ending those Decimal Data Error Blues | IBM i | IBM Sy...

4 of 6

http://www.ibmsystemsmag.com/ibmi/july03/enewsletterexclusive/13470...

STORAGE
PRODUCT NEWS
ENDPGM
BUYER'S GUIDE

Administrator > Printing

iSeries EXTRA: Ending those Decimal Data Error Blues


July 2003 | by Jon Paris and Susan Gantner

Print

Email

Of course, the code to report and fix the errors (F) can be challenging in an example like this, because three fields may be in error. If you only plan to report the
records in error and skip them, this code does the job. But suppose you want to be more specific in detecting which field is in error and perhaps move a default value
to the field containing invalid data. Let's examine some options for detecting the specific field in error.
An obvious approach would be to use three separate MONITOR blocks - one for each field. This requires some duplicate code and might be cumbersome. An
alternative is to use a single MONITOR block and set a flag before processing each field. In the event of an error being signaled, the flag can be checked to
determine the field in error. To allow for the possibility that you're unfortunate enough to have more than one invalid field value in a single record, you must do the
checking iteratively. An example of using the MONITOR iteratively can be found at on our Web site.
We're still finding new ways to make use of some of these recent enhancements. We'll illustrate other examples in future issues of iSeries EXTRA.

Page 1 2 3
Jon Paris is a technical editor with IBM Systems Magazine and co-owner of Partner400.
More Articles From Jon Paris
Susan Gantner is a technical editor with IBM Systems Magazine and co-owner of Partner400.
More Articles From Susan Gantner

Advertisement

9/27/2010 8:58 AM

iSeries EXTRA: Ending those Decimal Data Error Blues | IBM i | IBM Sy...

5 of 6

http://www.ibmsystemsmag.com/ibmi/july03/enewsletterexclusive/13470...

How Frontline Homeowners Insurance SOA - Enables their IBM i Policy and Claims Applications
Wednesday, October 13, 2010 - 2pm EST

Browse products and services for Administrator.

Advertisement

Maximize your IT investment with monthly information from THE source...IBM Systems Magazine EXTRA & Marketplace eNewsletters.
SUBSCRIBE NOW.
View past IBM i EXTRAs here

Related Articles

9/27/2010 8:58 AM

iSeries EXTRA: Ending those Decimal Data Error Blues | IBM i | IBM Sy...

6 of 6

http://www.ibmsystemsmag.com/ibmi/july03/enewsletterexclusive/13470...

Ending Those Decimal Data Error Blues


E-Newsletter Exclusive
How Zend Builds a Bridge
E-Newsletter Exclusive | Can you modernize with Zend Bridge and PHP?
Memories Are Made of This
E-Newsletter Exclusive | A quick quiz on RPG data types and storage
Three Good Reasons to Stop Writing Subroutines
E-Newsletter Exclusive | Save time and reduce errors with subprocedures
Paging RPG IV
IBM i
AIX
MAINFRAME
POWER
Homepage
About Us
Contact Us
Subscriptions
Editorial Calendar
Advertise With Us
Reprints
Privacy Policy
Terms of Service
Sitemap
IBM Systems Magazine is a trademark of International Business Machines Corporation. The editorial content of IBM Systems Magazine is placed on
this website by MSP TechMedia under license from International Business Machines Corporation.
2010 MSP Communications, Inc. All rights reserved

9/27/2010 8:58 AM

S-ar putea să vă placă și