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



Unfortunately the data structure method would not work. It seems to convert
the values into "garbage". I do not know why.

However, experimentation provided me with another solution based on
comments here. This worked for my test program. It has also worked in the
program I needed it to work in.

zCommand = 'SBMJOB CMD(CALL D1C716 PARM('

+ Q + %trim(emotid) + Q + ' '

+ Q + %trim(wForProcess) + Q + ' '

+ 'X' + Q + %editc(mhseq:'X') + 'F' + Q + ' '

+ Q + %trim(mhtral) + Q + ' '

+ 'X' + Q + %editc(wManifest2:'X') + 'F' + Q + ' '

+ 'X' + Q + %editc(wManifest3:'X') + 'F' + Q + ' '

+ Q + %trim(wUseScreen) + Q + ' '

+ Q + %trim(wPrtManifest) + Q + ' '

+ Q + %trim(wStripPrintWap) + Q + ' '

+ Q + %trim(wErrmsg1) + Q + ' '

+ Q + %trim(wErrmsg2) + Q + ' '

+ Q + %trim(wErrmsg3) + Q + ' '

+ Q + %trim(wOutManifest1) + Q + ' '

+ Q + %trim(wOutManifest2) + Q + ' '

+ Q + %trim(wOutManifest3) + Q + ' '



+ ')) JOB(N' + %char(mhseq) + ') '

+ ' JOBQ(INR500)' ;



// submit the command



CALLP SBMCMD (zCommand : %Len(zCommand) );


Darryl



On Tue, Oct 10, 2017 at 12:59 PM, Buck Calabro <kc2hiz@xxxxxxxxx> wrote:

On 10/10/2017 12:11 PM, Peter Dow wrote:
The thing to remember is that when you call a program from the command
line, or in a SBMJOB command, numeric parameters are passed as packed
decimal 15.5.

Yes! They are parameters from the caller to the SBMJOB, and they are
literals from the SBMJOB command line to D1C716.

In your situation, program D1C716 could define the numeric *ENTRY
parameters as packed decimal 15.5, then eval/z-add those to mhseq,
wManifest2 and wManifest3.

The time tested alternative is to create a very simple *CMD, and set the
command processing program to be D1C716. Invoking the program from the
command line would be dead simple, the job log would have sane looking
entries, and programs that already call D1C716 with packed(7: 2)
variables would continue to work as-is.
--buck

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.