• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • String Parameters of Various Lengths

    June 19, 2002 Timothy Prickett Morgan

    Hey, Ted:

    In the May 29 issue of Midrange Guru, OS/400 Edition, you describe a method for passing string parameters of variable length to a subprocedure. This possibility has some risks.

    The subprocedure must guarantee that it only changes the data passed to it by the caller.

    For example, suppose a parameter field in the called program or procedure is defined with a length of 15 bytes. A calling procedure passes five bytes. The API CEEDOD determines a length of five bytes, which is correct, but the length of the parameter field is however unchanged. If contents of the parameter field are changed by operations like CLEAR or EVAL, all 15 bytes are changed. The consequence is that storage areas are overwritten. Global variables in the calling program or procedure can be destroyed. I just spent two days finding such an error.

    — Birgitta

    Sponsored By
    JACADA

    Research on Presentation Integration Server Market

    Many changes have occurred in the presentation integration server market according to Gartner’s most recent Magic Quadrant research. Jacada is positioned in the leader quadrant for the fifth year in a row. This is important research for anyone planning presentation integration server projects.

    View the report courtesy/with compliments of Jacada at http://www.jacada.com/gartner/quadrant32

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags: Tags: mgo_rc, Volume 2, Number 47 -- June 19, 2002

    Sponsored by
    ARCAD Software

    [Webinar] Creating test data, easily and quickly!

    June 22 at 12 p.m. EST

    Software testing needs realistic, consistent data available on demand, where and when needed. However, providing testers with a copy of the entire production database is costly both in time and disk space.

    In this webinar, we’ll demonstrate how to:

    • Easily create coherent test datasets, small enough for rapid test cycles, but large enough to accurately reflect the variety of production data
    • Anonymize the datasets to protect any PII
    • Inject into test environments in a snap

    Join us on this webinar with Alan Ashley, solution architect, and learn how to subset your data.

    Register now!

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Searching Message Text RPG II

    Leave a Reply Cancel reply

MGO Volume: 2 Issue: 47

This Issue Sponsored By

    Table of Contents

    • String Parameters of Various Lengths
    • Tracing a Qshell Variable
    • LAYOUT: An Improved DSPFFD

    Content archive

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

    Recent Posts

    • IBM i Delivers Sizable Benefits, Forrester Consulting Reports
    • SBOMs Will Come to IBM i, Eventually
    • IBM i Backup Provider Storagepipe Snapped Up By Thrive
    • Four Hundred Monitor, June 7
    • IBM i PTF Guide, Volume 25, Number 23
    • Power10 Boosts NVM-Express Flash Performance
    • Fortra Completes Postmortem Of GoAnywhere Vulnerability
    • Guru: Binding Directory Entries
    • How Does Your Infrastructure Spending Stack Up To The World?
    • IBM i PTF Guide, Volume 25, Number 22

    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