Logging, the most important part of any piece of software and also the paper industry. Today we’re going to take a look at some handy logging tools in the mainframe.
System Log, SYSLOG
IBM Master the Mainframe Part Three – Challenge #03
Activate user log (ULOG)
From SDSF we need to enter the primary command ulog. We should see SDSF ULOG CONSOLE in the upper left corner of our screen. Do you remember how to get to the SDSF panel? Enter sd from the ISPF Primary Option Menu as primary command.
Let’s terminate by issuing the command ulog close.
Press F3 to go back
Capture SYSLOG output only related to your specific actions
So again from the SDSF menu we enter ulog. After that we need to enter some commands, be sure to substitute your ID.
- Enter command /d ts,z######
- Enter command /d m=cpu
- Enter command /d iplinfo
- Enter ulog again to display content of current ulog
This is what I eventually got.
Print the user log content
From SDSF we need to enter print. Then we should see lines printed in the right upper corner.
I have entered print and I have seen the lines printed message.
Write the user log content to p3.output(#03)
Note: Failing to include “Member to use” and “Disposition” could overwrite all of p3.output resulting in loss of previous challenge output
From the same screen I’ll enter owner z50087; prefix z50087; st. Then next to my jobname I’ll execute ? line command.
We need to view the DDNAME that begins with SYS.
It should contain the content of the printed ulog. It does! Now I’ll enter end to return to the JES pool listing. Yes I know I know, in the next screenshot you’ll notice Z500087 not found error, but that’s not an issue.
Now we’ll need to copy this using the xdc line command. If xdc doesn’t work because the print is open, enter the primary command PRINT CLOSE and try again.
I need to change the data set name, member to use and disposition.
Then we press enter and we should be done 🙂 Let me check P3.OUTPUT to verify.
Yes! Looks good! Consider this part done!