When passing parameters from a CL module to an RPG module, both of which are part of a single bound program, the length of alpha variables must be the same. For example, the receiving module needs 10 alpha characters if the sending module uses 10. If my sending module passes only eight characters, the program fills the last two characters with garbage.
This is different from the way we used to call Original Program Model (OPM) programs; we never had to worry about this. Now we must pad our sending parameter with the correct number of blanks so that the receiving module gets the correct data.
- William W. Smyth
LATEST COMMENTS
MC Press Online