Skip to content

Instantly share code, notes, and snippets.

@qpgmr-de
Last active May 6, 2020 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qpgmr-de/356365dfd5111618de82fce5bdf192bc to your computer and use it in GitHub Desktop.
Save qpgmr-de/356365dfd5111618de82fce5bdf192bc to your computer and use it in GitHub Desktop.
IBM i full-free ILE-RPG joblog procedure
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