× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Bill,

You should only get an error where you indicated if passcompany has a value
that won't fit in a 2,0 field.  In your example where the value is 1 this
should work fine (I didn't test it).  The scenario could result in an error
but not if the original fields in the programs are the same size.  Why are
all your program to program calls changed to 15,5?  This would only be
necessary if the programs are being called directly from the command line.

Scott Mildenberger

> -----Original Message-----
> From: Hopkins, Bill [mailto:BHopkins@saurerinc.com]
> Sent: Friday, October 25, 2002 9:14 AM
> To: 'rpg400-l@midrange.com'
> Subject: Best way for numeric parms
>
>
> I have a client who just with through alot of code and change
> Plist to use
> 15 5 values in his calls to RPG IV programs.
>
> stop data decimals on calls but now of course getting target
> to smal when
> trying to move back to correct size.
>
> ruff example RPGII call to RPG IV he has done
>
> RPGII code
>
> z-add 1             company          2 0
> z-add company passcompany
> call 'pgm2'
> parm                passcompany  15 5
>
>
> RPG IV code
>
> *Entry plist
>           parm     passcompany   15 5
>
>
> z-add passcompany  keycompany 2 0    <<< error of course
>
> Can fix but was wanting to get
> suggestions for replacement code
> for all of these type calls.
>


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.