Last active
May 6, 2020 20:17
-
-
Save qpgmr-de/356365dfd5111618de82fce5bdf192bc to your computer and use it in GitHub Desktop.
IBM i full-free ILE-RPG joblog procedure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dcl-proc joblog; | |
//-------------------------------------------- | |
// usage: | |
// ... | |
// joblog('message for the joblog'); | |
// ... | |
// /COPY JOBLOG; | |
//-------------------------------------------- | |
dcl-pi *N; | |
pMsg VarChar(250) Value; | |
end-pi; | |
dcl-pr Qp0zLprintf Int(10) ExtProc(*DCLCASE); | |
*N Pointer Value Options(*STRING); | |
*N Pointer Value Options(*STRING:*NOPASS); | |
end-pr; | |
dcl-s rc Int(10) Inz; | |
dcl-c CRLF Const(x'0d15'); // newline/cr+lf | |
rc = Qp0zlprintf(pMsg + '%':CRLF); | |
Return; | |
end-proc joblog; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment