My problem is that SOURCE-LIST-WITH-DBID-FNR=Y only works when using OUTPUT-DESTINATION-IN-BATCH=D. I want it with ODIB = P or W. Is that a bug?
SOURCE-LIST-WITH-DBID-FNR=YNvalue
SLDF=YNvalue
OUTPUT-DESTINATION-IN-BATCH=DPTWvalue
ODIB=DPTWvalue
My problem is that SOURCE-LIST-WITH-DBID-FNR=Y only works when using OUTPUT-DESTINATION-IN-BATCH=D. I want it with ODIB = P or W. Is that a bug?
SOURCE-LIST-WITH-DBID-FNR=YNvalue
SLDF=YNvalue
OUTPUT-DESTINATION-IN-BATCH=DPTWvalue
ODIB=DPTWvalue
There are two ways to do this.
Use JCL to direct the default output to a work file.
//LIST EXEC NATBT
//CMPRINT DD DSN=WORK.FILE,DISP=(NEW,...
//CMSYNIN DD *
L pgmname SET SLDF=Y
FIN
/*
//
The output will include Natural’s audit trail. Likely this is why you wanted to use ODIB=P or W.
To eliminate the audit trail, instead of ODIB, set USEMAINPR=Y. Specify MAINPR in your NatParms to point to CMPRT01 and let JCL send it to a printer or a work file.
//LIST EXEC NATBT,PARM='AUTO=ON,IM=D,MAINPR=1'
//CMPRINT DD SYSOUT=*
//CMPRT01 DD SYSOUT=*
- or - DSN=WORK.FILE,DISP=(NEW,...
//CMSYNIN DD *
L pgmname SET USEMAINPR=Y SLDF=Y
FIN
/*
//