× 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.



> From: Fisher, Don
>
> The only way to use numeric parameters in a SBMJOB command is to
> define them
> as 15P5 in the program being called.  You could also build a
> command string
> that uses hexadecimal notation for the numeric parameters like this:
> CALL PROGRAM (X'1234567F' X'12345F')

Hey... couldn't you use a zoned decimal field rather than a packed field?
Lemme check real quick, before I stick my foot squarely in my mouth again...

Yep, this works:

DInboundZoned     S              3S 0
DMessage          S             50

C     *entry        plist
C                   parm                    InboundZoned

C                   eval      Message = 'Parm1: ' +
C                               %char(InboundZoned)

C     Message       dsply

C                   move      *on           *inlr


    CALL TESTPGM PARM('123')

    Displays "Parm1: 123"

Of course, now you have to have the right number of digits and you have to
enclose the parameter in quotes and you have to be careful about decimals
and negative numbers are a problem, but hey, other than that it works.
<grin>


Joe


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.