AS/400 HELP
"LOGMSG"


LOGMSG sends a message/note to the system
history log. Messages (75 character
line) can be sent 2 ways.
Command
line…. Enter
LOGMSG the user is then
prompted to enter up to 75 characters.
Program…
add the following code to any
program you want to track later in the history log file.
Example EVAL MSGLINE = ‘OE MONTH END
(OEME10) COMPLETED’
CALL “LOGMSG/LOG1”
PARM MSGLINE 75
LOGMSG uses it own message file with 1
message LOG0000
When you use the command DSPLOG
hit f10 for more options and select use filter …….. LOG0000
Only
messages sent by LOGMSG will appear.
LOGMSG use API QMHSNDM. It was written
at V4r5 and will not work below that level.
PC INSTRUCTIONS:
Download "LOGMSG” to your PC.
Go to a DOS session and enter the following;
FTP SYSTEM (system = your AS/400’s name or IP address)
Enter a valid user id and password
CD QGPL
LCD C:\DIRECTORY (directory= the directory on your pc where you
downloaded “llogmsg.savff”
QUOTE
SITE NAMEFMT 1
BIN
PUT
LOGMSG.SAVF
QUOTE RCMD
RSTLIB SAVLIB(LOGMSG) DEV(*SAVF) SAVF(QGPL/LOGMSG)
Note: If there is a security problem restoring all
objects with the command above, sign on
to your as/400 as Qsecofr and run RSTLIB
from the command line.
AS/400
INSTRUCTIONS: (for entering command
line messages only)
ADDLIBLE LOGMSG
LOGMSG
To see messages; DSPLOG MSGID(LOG0000)
NOTE: if you want to add more
messages to the message file LOGMSG/LOGMSG first look at LOG0000.
Make sure you use 1 parameter to
pass the info.