Obtaining a joblog from the AS/400
search cancel

Obtaining a joblog from the AS/400

book

Article ID: 55999

calendar_today

Updated On:

Products

CIS COMMON SERVICES FOR Z/OS 90S SERVICES DATABASE MANAGEMENT SOLUTIONS FOR DB2 FOR Z/OS COMMON PRODUCT SERVICES COMPONENT Common Services CA ECOMETER SERVER COMPONENT FOC Easytrieve Report Generator for Common Services INFOCAI MAINTENANCE UNICENTER JCLCHECK COMMON COMPONENT Mainframe VM Product Manager CHORUS SOFTWARE MANAGER CA ON DEMAND PORTAL CA Service Desk Manager - Unified Self Service PAM CLIENT FOR LINUX ON MAINFRAME MAINFRAME CONNECTOR FOR LINUX ON MAINFRAME GRAPHICAL MANAGEMENT INTERFACE WEB ADMINISTRATOR FOR TOP SECRET Xpertware Compress Data Compression for MVS Compress Data Compression for Fujitsu Unicenter Job Management Option

Issue/Introduction

How do I get a joblog from the AS/400?

Environment

Component: CA90S

Resolution

*JOBLOG - trace messages are sent to the job log. The job attribute is changed so that the job log spool file is sent to the output queue QEZJOBLOG when the job ends.

This trace method is the best way to view trace messages while the job is running.

  1. Use the WRKACTJOB command
  2. Type option 5 next to the job
  3. Type option 10 to see the job log.
  4. After the job ends, you can find the job log as a spooled file in the output queue QEZJOBLOG. The AS/400 command WRKOUTQ QEZJOBLOG will show the list of files in the queue.
  5. Go to the bottom of the list to see the most recent files.
  6. The spool file can be transferred to Windows, but first, it must be copied to a data file.
    1. Create the data file named MYDATA in the library QGPL (for example):

      CRTPF FILE(QGPL/MYDATA) RCDLEN(133) MBR(*NONE) MAXMBRS(*NOMAX)

    2. Then copy the job log to the data file QGPL/MYDATA, member name XYZ:

      CPYSPLF FILE(qpjoblog) TOFILE(QGPL/MYDATA) JOB(862732/CAWLAGENT/CAOPRDMN) SPLNBR(2) TOMBR(XYZ)

    3. The file name, job id, and spool number can be found in the WRKOUTQ display.