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



On Thu, May 24, 2012 at 12:23 PM, CRPence <CRPbottle@xxxxxxxxx> wrote:
  If easy enough to do as "normally" to build the command string, then
the following should be almost as easy:

  Use the expression 'X''' CONCAT HEX(:DS) CONCAT '''' as the data for
the parameter [within PARM()] in the CALL command string that is built.


Or...

Add a simple CL module to your program to run SBMJOB with automatic
formatting of the PARM data. Here's some code to illustrate:

pgm

/* Example struct and fields in place of structure passed from caller */
dcl &f1 *char 2 value( x'0008' )
dcl &f2 *char 12 value( 'abcd1234' )
dcl &f3 *char 12 value( x'000000041F' )

dcl &struct *char 80

dcl &parm *char 81

chgvar &struct ( &f1 *cat &f2 *cat &f3 )

/* CL trims trailing blanks from PARM data */
chgvar &parm ( &struct *cat '.' )

sbmjob job(nojob) cmd(call nolib/nopgm parm( &parm ))

endpgm





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.