There *used to be* a great video available on how to use it from System i
Network: http://systeminetwork.com/tuesdaytips

Unfortunately, I can't find it anymore, I think it was before their July
2008 cutoff date.

Here is the prototype I use, inspired by that video:

D JobLog PR EXTPROC('Qp0zLprintf')
D pMsg * VALUE
D OPTIONS(*STRING)
D pS1 * VALUE
D OPTIONS(*NOPASS:*STRING)
D pS2 * VALUE
D OPTIONS(*NOPASS:*STRING)
D pS3 * VALUE
D OPTIONS(*NOPASS:*STRING)
D pS4 * VALUE
D OPTIONS(*NOPASS:*STRING)
D pS5 * VALUE
D OPTIONS(*NOPASS:*STRING)
D pS6 * VALUE
D OPTIONS(*NOPASS:*STRING)


And this is how I call it:

JobLog('Log This!!'+LF );


(LF is declared as constant X'25')

On Mon, Aug 17, 2009 at 1:03 PM, Neill Harper <neill.harper@xxxxxxxx> wrote:

Think you might be looking for Qp0zLprintf()--Print Formatted Job Log Data,
its thread safe too!!

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Dennis Lovelady
Sent: 17 August 2009 18:18
To: 'Midrange Systems Technical Discussion'
Subject: "Write to Job Log" API?

Hi, Folks:



Maybe I dreamed it, but it seems like a few days ago I saw a reply message
on this list that said something like "If all you want to do is write to
the
job log, just call <this api>." Now usually, I will use QMHSNDPM for this
purpose, but it sparked my interest that there might be another way. I
tabled it because I was busy and cannot now locate that message (even in
the
Midrange archives). And I didn't see anything matching that description on
the publib.boulder.ibm.com pages.



Any help? Did I dream it? Is QMHSNDPM adequate to the purpose, or might
there be a better way at V5?



Dennis E. Lovelady
AIM: delovelady MSN: fastcounter@xxxxxxxxxxxx
<http://www.linkedin.com/in/dennislovelady>
www.linkedin.com/in/dennislovelady --
"I'm sincere. I'm really curious. I care what people think. I listen to
answers and leave my ego at the door. I don't use the word 'I.'"
- TV personality Lary King in Psychology Today



--
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: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

--
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: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.