Ron Horner asked for examples of using Syslog/iX
The following MPE style command file logs an event. It is useful within
jobs.
parm msg=""
comment Send log message to Syslog/iX
if "!msg" = ""
echo Usage SYSLOG ;msg="string.."
else
build L ;rec=-250,,f,ascii ;disc=1 ;nocctl ;temp
file L=L,oldtemp
echo !msg >> *L
run /SYSLOG/PUB/logger ;stdin=*L
reset L
purge L,temp
endif
See /SYSLOG/PUB/logger.1 for additional parameters for /SYSLOG/PUB/logger.