|
H DFTACTGRP(*NO)
D IfLog PR D Condition 1N const D Message 100A varying const
D x s 10I 0 inz(-1) /free
IfLog(X<=0: 'ERROR! X must be 1 or more!');
*inlr = *on; /end-free
*++++++++++++++++++++++++++++++++++++++++++++++++++++ * Write a diagnostic message to the job log if * a condition is true. *++++++++++++++++++++++++++++++++++++++++++++++++++++ P IfLog B D IfLog PI D Condition 1N const D Message 100A varying const
D QMHSNDPM PR ExtPgm('QMHSNDPM') D MessageID 7A Const D QualMsgF 20A Const D MsgData 32767A Const options(*varsize) D MsgDtaLen 10I 0 Const D MsgType 10A Const D CallStkEnt 10A Const D CallStkCnt 10I 0 Const D MessageKey 4A D ErrorCode 32767A options(*varsize)
D NullError S 8A inz(*ALLx'00') D MsgKey s 4A
/free
if (Condition); QMHSNDPM( 'CPF9897' : 'QCPFMSG *LIBL' : Message : %Len(Message) : '*DIAG' : '*' : 1 : MsgKey : NullError ); endif; /end-free P E
IfLog( %found(ITMMAST): 'ITMMAST record was found');
IfLog( %date(myDate)>=StartDate and %date(myDate)<=EndDate : 'Date falls into date range');
As an Amazon Associate we earn from qualifying purchases.
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.