• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Adding Subprocedures to a Service Program, Revisited

    September 11, 2002 Timothy Prickett Morgan

    Hey, Ted:

    Regarding your article, “Adding Subprocedures to a Service Program,” there’s a question I’ve always wondered about.

    Why is the *CURRENT/*PRV way of handling new exports, such as this example:

    STRPGMEXP PGMLVL(*CURRENT)
    EXPORT SYMBOL('ONEMORETHAN')
    EXPORT SYMBOL('TWICE')
    EXPORT SYMBOL('ONETHIRDOF')
    ENDPGMEXP
    STRPGMEXP PGMLVL(*PRV)
    EXPORT SYMBOL('ONEMORETHAN')
    EXPORT SYMBOL('TWICE')
    ENDPGMEXP
    STRPGMEXP PGMLVL(*PRV)
    EXPORT SYMBOL('ONEMORETHAN')
    ENDPGMEXP
    

    so popular compared to the hard-coded signature method, where you only keep one export list, as shown in this example:

    STRPGMEXP PGMLVL(*CURRENT) SIGNATURE("MATH")
    EXPORT SYMBOL('ONEMORETHAN')
    EXPORT SYMBOL('TWICE')
    EXPORT SYMBOL('ONETHIRDOF')
    ENDPGMEXP
    

    You have to keep the exports in the same order and add news ones at the end anyway, so I don’t see the advantage of using *PRV signatures.

    — Barbara Morris

    RPG Compiler Development, IBM

    I’m not sure why the SIGNATURE(*GEN) method is so popular, but I’ll take a guess: That’s the way the writers for the tech magazines learned it first.

    Whatever the reason, the hard-coded signature method makes sense and does seem easier. If other readers know of a down side to hard-coded signatures, or otherwise have feelings about this issue, I hope they will e-mail me .

    I tested the hard-coded signature with the example in the original tip, and it worked fine. I was able to add more exports to the service program without getting signature level checks.

    — Ted

    Sponsored By
    WORKSRIGHT SOFTWARE

    On June 30, 2002,
    $$$$$$$$    Postal Rates went UP!    $$$$$$$$

    On July 1, 2002,
    $$$$$    you wanted your postage bill to go down.    $$$$$

    We have the solution! CASS certify your mailing names and addresses and presort your outgoing mail and save. Our CASS certification software ensures that your address files have valid ZIP Code and address information. Our presort software ensures that you can properly prepare you mail for delivery to your Post Office.

    WorksRight Software, Inc. is the number-one source for iSeries and AS/400 CASS, presort, ZIP Code, and area code software and data.

    Visit our Web site – www.worksright.com – to learn more about our CASS and presorting software, or contact WorksRight Software, Inc., phone 601-856-8337,
    e-mail software@worksright. com .

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags: Tags: mgo_rc, Volume 2, Number 69 -- September 11, 2002

    Sponsored by
    WorksRight Software

    Do you need area code information?
    Do you need ZIP Code information?
    Do you need ZIP+4 information?
    Do you need city name information?
    Do you need county information?
    Do you need a nearest dealer locator system?

    We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

    The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

    PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

    Just call us and we’ll arrange for 30 days FREE use of either ZIP/CITY or PER/ZIP4.

    WorksRight Software, Inc.
    Phone: 601-856-8337
    Fax: 601-856-9432
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Edit with Parentheses in Query/400, Take Two Reader Feedback and Insights: Binder Language

    Leave a Reply Cancel reply

MGO Volume: 2 Issue: 69

This Issue Sponsored By

    Table of Contents

    • Reader Feedback and Insights: Security Flaws
    • Excuse Me…Can You Hold this Secondary Partition While I Upgrade the Primary?
    • Adding Subprocedures to a Service Program, Revisited

    Content archive

    • The Four Hundred
    • Four Hundred Stuff
    • Four Hundred Guru

    Recent Posts

    • IBM i Has a Future ‘If Kept Up To Date,’ IDC Says
    • When You Need Us, We Are Ready To Do Grunt Work
    • Generative AI: Coming to an ERP Near You
    • Four Hundred Monitor, March 22
    • IBM i PTF Guide, Volume 25, Number 12
    • Unattended IBM i Operations Continue Upward Climb
    • VS Code Is The Full Stack IDE For IBM i
    • Domino Runs on IBM i 7.5, But HCL Still Working on Power10
    • Four Hundred Monitor, March 6
    • IBM i PTF Guide, Volume 25, Number 11

    Subscribe

    To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

    Pages

    • About Us
    • Contact
    • Contributors
    • Four Hundred Monitor
    • IBM i PTF Guide
    • Media Kit
    • Subscribe

    Search

    Copyright © 2023 IT Jungle