Midrange News for the IBM i Community


Posted by: George Fuste
IBM i developer
Jacksonville, FL
Using the Qp0zLprintf external procedure
has no ratings.
Published: 12 Jan 2016
Revised: 12 Jan 2016 - 946 days ago
Last viewed on: 15 Aug 2018 (2397 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Using the Qp0zLprintf external procedure Published by: George Fuste on 12 Jan 2016 view comments(2)

In RPG free I define and call the Qp0zLprintf proc like this to write messages to the joblog:

Dcl-PR WrtJobLog Int(10:0)     ExtProc('Qp0zLprintf');   
 szOutputStg     Pointer Value Options(*String);         
 *n              Pointer Value Options(*String: *NoPass);
 *n              Pointer Value Options(*String: *NoPass);
End-PR;   

 

WrtJoblog(%trimR(Message) + LF);     

"Message" is VarChar(256)

"LF" is a constant of x'25'

 

How would I do this same definition and call in CLLE?                                              

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS