ending those...3

Upload: nairarung

Post on 01-Jun-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/9/2019 Ending Those...3

    1/6

  • 8/9/2019 Ending Those...3

    2/6

    Storage

    Disk

    Optical

    Servers

    Tape

    Product News

    Product Reviews

    Administrator

    Backup and Recovery

    CICS

    DB2High Availability

    IMS

    LPAR

    Migration

    Networks

    Performance

    Security

    Systems Management

    Tivoli

    Trends

    Linux

    Open Source

    Security

    SOAWhat's New

    z/OS

    z/VM

    Tips & Techniques

    Application Development

    Systems Management

    Case Studies

    Automotive

    Banking/Finance

    Healthcare

    Insurance

    Manufacturing

    MiscellaneousRetail

    Storage

    Disk

    Servers

    Software

    Tape

    Product News

    Stop Run

    Buyer's Guide Main Page

    s EXTRA: Ending those Decimal Data Error Blues | IBM i | IBM Sy... http://www.ibmsystemsmag.com/ibmi/july03/enewsletterexclusive

    9/27/2010

  • 8/9/2019 Ending Those...3

    3/6

    Business Strategy

    Competitive Advantage

    Consolidation

    Executive Perspective

    Green IT

    Migration

    Open Source

    ROI

    Infrastructure

    Blades

    StorageSystems Management

    Case Studies

    Distribution

    Healthcare

    Manufacturing

    Services

    Web 2.0

    Cloud

    Social Media

    Trends

    Collaboration

    IBM AnnouncementsIBM 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

    s EXTRA: Ending those Decimal Data Error Blues | IBM i | IBM Sy... http://www.ibmsystemsmag.com/ibmi/july03/enewsletterexclusive

    9/27/2010

  • 8/9/2019 Ending Those...3

    4/6

    STORAGE

    PRODUCT NEWS

    ENDPGM

    BUYER'S GUIDE

    Administrator> Printing

    iSeries EXTRA: Ending those Decimal Data Error BluesJuly 2003 | by Jon Parisand Susan Gantner

    Print Email

    Of course, the code to report and f ix 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 iterat ively. An example of using the MONITOR iteratively can be found at on our Web site.

    We're still f inding new ways to make use of some of these recent enhancements. We'll illustrate other examples in future issues of iSeries EXTRA.

    Page 123

    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

    s EXTRA: Ending those Decimal Data Error Blues | IBM i | IBM Sy... http://www.ibmsystemsmag.com/ibmi/july03/enewsletterexclusive

    9/27/2010

  • 8/9/2019 Ending Those...3

    5/6

    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 MagazineEXTRA & Marketplace eNewsletters.

    SUBSCRIBE NOW.

    View past IBM i EXTRAs here

    Related Articles

    s EXTRA: Ending those Decimal Data Error Blues | IBM i | IBM Sy... http://www.ibmsystemsmag.com/ibmi/july03/enewsletterexclusive

    9/27/2010

  • 8/9/2019 Ending Those...3

    6/6

    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 UsSubscriptions

    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

    s EXTRA: Ending those Decimal Data Error Blues | IBM i | IBM Sy... http://www.ibmsystemsmag.com/ibmi/july03/enewsletterexclusive