|
On 11/19/2024 5:22 PM, Richard Schoen wrote:
Interesting. When did the type thing come in to play ?
7.4
I always felt that CL enhancements didn't get enough 'press'.
https://www.ibm.com/docs/en/i/7.4?topic=language-whats-new-i-74
7.3 was quiet, but 7.2 had some string handling enhancements:
https://www.ibm.com/docs/en/i/7.2?topic=language-whats-new-i-72
I don't recall when it was added, but CALLSUBR and friends make CL
programming fun again.
--buck
------------------------------
message: 4
date: Tue, 19 Nov 2024 16:19:10 -0500
from: Buck Calabro <kc2hiz@xxxxxxxxx>
subject: Re: How do I pass a packed numeric valid into a called RPG
program?
On 11/19/2024 3:50 PM, James H. H. Lampert via RPG400-L wrote:
On 11/19/24 12:49 PM,
dfreinkel@xxxxxxxxxxxxxxxxx wrote:
I have seen it done but never used it. How would I call a RPG program
passing packed numerics from the command line?
I'm not *absolutely* certain of this, but I *think* you have to create
a *CMD object that will pass your parameter as packed.
Far and away, this is the easiest!!!
Nowadays, if I'm in a pinch, all I need to do is CALL PGM(mypgmn)
PARM((60609 (*DEC 5 0)))
--
--buck
http://wiki.midrange.com
Your updates make it better!
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.