At my shop, we run Natural in batch on mainframe.
Every time we run a Natural program, the following Natural Security Logon messages comes along with the reports.
For example, if we set up the following JCL:
//CMPRINT DD SYSOUT=(,),OUTPUT=*.REPORTS
Then those messages will get print also along with the reports.
Is there any way we can separate these logon messages without the changes in the Natural programs.
(For ex: we can change WRITE to WRITE (1) in the program, and then set up in JCL:
Thank you Dick.
I also took a search on AG website, but I still can't firgure out a better way (to supress the messages without modyfing the programs and JCL)AG website contains lots of topics but lack of examples).
Thanks for your response, I am asking the administrator at my shop to do so.
I searched and found the following material.
I tried to apply MAINPR parameter in some ways but I still can't make it.
Is anyone has any experience in using this MAINPR parameter ?
MAINPR - Override Default Output Report Number
Possible Values 0 - 31
Default Value 0
With this parameter, you can separate program output from Natural system output, which may be useful particularly in batch mode.
This applies to program output for Report 0, as produced by DISPLAY, PRINT, WRITE or INPUT statements (except INPUT statements which contain input fields (AD=A or AD=M)).
If the MAINPR parameter is specified, program output for Report 0, which would normally be output on the printer assigned to Report 0, is output on the printer specified with MAINPR instead; while system output (NEXT prompt, DATA prompt, etc.) is always output on the primary output device (Report 0); the MAINPR setting must be a a valid printer number (0 - 31).
A logical printer corresponding to the report number specified must be defined to Natural. A printer is defined with the profile parameter PRINT, with the macro NTPRINT or automatically by JCL (in batch mode or under TSO).
The MAINPR parameter does not apply to output from system programs in the Natural system library "SYSLIB", which is always output on the primary output device (Report 0).