James,
 
Another option is to use the Qp0zLprintf ("Print Formatted Job Log
Data") procedure - it's the external version of printf(). It accepts any
number of parameters - the first is the main string and then the others
are the substitution variables. I have it defined as follows (with 10
non-passable parameters, but you could define more or less):

D WriteToJobLog   PR            10I 0 ExtProc('Qp0zLprintf')        
D  Message@                       *   Value Options(*String)        
D                                 *   Value Options(*String:*Nopass)
D                                 *   Value Options(*String:*Nopass)
D                                 *   Value Options(*String:*Nopass)
D                                 *   Value Options(*String:*Nopass)
D                                 *   Value Options(*String:*Nopass)
D                                 *   Value Options(*String:*Nopass)
D                                 *   Value Options(*String:*Nopass)
D                                 *   Value Options(*String:*Nopass)
D                                 *   Value Options(*String:*Nopass)
D                                 *   Value Options(*String:*Nopass)

It simply writes the data to the joblog (as the name suggests). Very
simple.

HTH,

Rory



This thread ...


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.