Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
<<SNIP>> a simple RPGLE program which I can call from a command
line. The problem is that the parameter, which is a character type,
256 in length, gets padded with "unexpected" contents beyond what I
am submitting on the command line. If I submit it like so:
CALL PGM(MYPGM) PARM('This is a test')
I see something like this when I view the contents in either debug
or the receiving program:
'This is a testRPGLESRC MYLIBRAY MYPGM ??*SRCMBRTXT ‑ 1?' <<SNIP>>
<<SNIP>>
The program has these Prototypes/Procedure interfaces:
D mypgm pr extpgm('MYPGM')
D text 256A varying const options(*trim)
<<SNIP>>
I originally defined 'text' as 256A but saw the spurious characters.
So I tried options(*varsize), same result.
So I tried varying const options(*trim). No joy ( get a variable out
of range error).
<<SNIP>>
I want to pass a character string of up to 256 characters into this
program and only get the characters typed as the parameter value.
What am I missing?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.