×
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.
Steven,
I worte an article for Scott's Programming Tips newsletter in November 2006
about this sort of thing - it includes code for a utility procedure called
parse() which helps you to combine strings - see
http://www.systeminetwork.com/artarchive/newsletter/w/1001/a/53509/index.html
You would use the parse() utility as follows:
/free
Base = 'SBMJOB CMD(CALL PGM(HPMODS/R0774B) PARM(''&1'' ''&2''))
USER(IXAADMIN)';
SubmitJob = parse( Base : %trim( path ) : %trim( printer ) );
SystemCmd( SubmitJob : %len( SubmitJob ) );
/end-free
You could also hold Base as a constant string, or in a database file (as I
do) or supply it as a parameter. This is very similar to Jonathan's method
of holding the data as a message, but in some ways it's more flexible (and
in some ways, less).
Rory
On 6/21/07, sjones@xxxxxxxxxxxxxx <sjones@xxxxxxxxxxxxxx> wrote:
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))
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.