Saving the contents of a z/OS log such as RKLVLOG
To save the information in your z/OS® logs (such as RKLVLOG), use the System Display and Search Facility (SDSF) facility that is part of TSO. Follow these instructions to use SDSF to capture (in this example) the RKLVLOG associated with any running task in your z/OS monitoring agent.
Procedure
- From ISPF, select the SDSF option.
- Enter the following on the command line:
st taskname
Where taskname is the name of the procedure whose log you are trying to display and capture. For example, entering st cansdsst on the command line enables you to see the OMEGAMON® for Storage on z/OS agent job.
- FLUSH the message buffer to force any cached messages to be sent to the log using this command:
f taskname,FLUSH
Note: Be aware that your address space may be running with the option WTO(N) enabled, which limits the number of messages the product can issue. If you are using this option, you may be asked to recreate the problem without this message-suppression parameter. - From the SDSF screen, enter ? next to the name of the started task to display a list of the output files like the following. For example, the output files for the sample cansdsst task noted previously looks like this:
JESMSGLG JES2 JESJCL JES2 JESYSMSG JES2 SYSTSPRT CANSDSST SYSPRINT CANSDSST RKLVLOG CANSDSST RKLVSNAP CANSDSST RKPDLOG CANSDSST KS3ANMON CANSDSST KS3ACTCS CANSDSST - To print the RKLVLOG for this job to a dataset, type an s next to the RKLVLOG output file. Then, on the command line of SDSF, type:
print d
Press Enter. The d means that the file is printed to a dataset.
- This action causes a panel similar to the one in the following figure to be displayed: Figure 1. Figure 1. SDSF print to database panel
COMMAND INPUT ===> SCROLL ===> CSR Data set name ===> ’USER1.NMP181.D26033.CANSON.SYSLOG’ Member to use ===> Disposition ===> NEW (OLD, NEW, SHR, MOD) If the data set is to be created, specify the following. Volume serial will be used to locate existing data sets if specified. Management class ===> (Blank for default management class) Storage class ===> (Blank for default storage class) Volume serial ===> (Blank for authorized default volume) * Device type ===> (Generic unit or device address) * Data class ===> (Blank for default data class) Space units ===> TRKS (BLKS, TRKS, CYLS, BY, KB, or MB) Primary quantity ===> 5 (In above units) Secondary quantity ===> 5 (In above units) Directory blocks ===> 0 (Zero for sequential data set) Record format ===> VBA Record length ===> 240 Block size ===> 3120 * Only one of these fields may be specifiedOn this panel, type the dataset name and characteristics for the file you are printing and press Enter.
- You are returned to the RKLVLOG output file. On the command line, specify the number of lines you want to print by entering a range that would include the entire file, such as:
print 1 99999999
Then press Enter. A message in the upper right corner of the panel tells you how many lines have been printed.
- Type print close on the SDSF command line to close the file. The log is now saved in the dataset that was specified in Step 6.