×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




If you want to take the pain out of formatting command strings for QCMDEXEC,
etc, do what I do and store the command in a message field and specify
replacement data fields for your parameters. For example:

SBMJOB CMD(CALL PGM(HPMODS/R0774B) PARM(''&1'' ''&2'')) USER(IXAADMIN)

In your program retrieve the message from the message file using the QMHRTVM
system API passing along the parameter variables for the call. If you want
an example of a RtvMsg sub-procedure let me know and I'll post the one I
use.

Jonathan

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of sjones@xxxxxxxxxxxxxx
Sent: 21 June 2007 16:46
To: RPG programming on the AS400 / iSeries
Subject: Re: Dumb Question O-Day

That is what I am struggling with, getting the cmdstring (submitjob)
formated correctly. I forgot to post the callp which is:

Callp SystemCmd(SubmitJob : %Len(SubmitJob))




rob@xxxxxxxxx
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
06/21/2007 11:36 AM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
cc

Subject
Re: Dumb Question O-Day






Run in debug. Paste value of cmdstring.

Rob Berendt

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