• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • A Better Way To Read a Job Log

    September 28, 2011 Ted Holt

    Note: The code accompanying this article is available for download here.

    A job log is a wonderful thing to have when you’re trying to figure out why a good program went bad. The problem with job logs is that the few messages that point out what went wrong are entombed within myriad irrelevant messages. And job logs can be long. Just recently I dealt with one that was over 400 pages. I wrote a utility to help me make sense of job logs. Maybe it will help you, too.

    My utility, which I call Convert Job Log (CVTJOBLOG), reads a spooled job log report and writes the information into a database file, which I can query. Querying a database file means that I can use record-selection to drop irrelevant messages, which greatly reduces the number of messages I have to work through.

    CVTJOBLOG consists of four objects:

    Object

    Type

    Description

    CVTJOBLOG

    Command

    Command interface

    JOBLOGDATA

    Physical file

    Template output file

    JOBLOG001C

    Program (CLLE)

    Command-processing
    program

    JOBLOG001R

    Program (RPGLE)

    Copies from printed
    job log to database file

    I could have added a fifth object–a panel group for help text–but I didn’t need it and I had too many other things to work on.

    The CVTJOBLOG command has two parameters: a qualified job name, and a qualified database file name. The qualified job name identifies the job you want to study. There must be a spooled job log in the job’s output; CVTJOBLOG will not create a spooled job log. If there is more than one job log in the job, CVTJOBLOG will read the last one.

    The qualified file name indicates the database file member to contain the job log information. I often place this file in QTEMP. If the member exists, it will be cleared. If the file and/or member do not exist, they will be created as required. I recommend that you not use the template file, JOBLOGDATA. It’s OK to use a file of that name in another library, but I don’t use the template itself.

    Here’s an example:

    CVTJOBLOG JOB(744460/SOMEBODY/SOMEJOB) FILE(QTEMP/JL)
    

    The last job log in job 744460/SOMEBODY/SOMEJOB is read and loaded into a file called JL in QTEMP. I did not specify a member name because the name of the member is not important.

    I hope you’ll find this utility beneficial when you’re faced with a long job log. Let me know.



                         Post this story to del.icio.us
                   Post this story to Digg
        Post this story to Slashdot

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    ARCAD Software

    DevSecOps & Peer Review – The Power of Automation

    In today’s fast-paced development environments, security can no longer be an afterthought. This session will explore how DevSecOps brings security into every phase of the DevOps lifecycle—early, consistently, and effectively.

    In this session, you’ll discover:

    • What DevSecOps is and why it matters?
    • Learn how to formalize your security concerns into a repeatable process
    • Discover the power of automation through pull requests, approval workflows, segregation of duties, peer review, and more—ensuring your data and production environments are protected without slowing down delivery.

    Whether you’re just getting started or looking to enhance your practices, this session will provide actionable insights to strengthen your security posture through automation and team alignment to bring consistency to the process.

    Watch Now!

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    System i Developer:  Join the Gurus at the RPG & DB2 Summit in St. Louis, October 17-19
    Connectria Hosting:  What's your IBM System i strategy? Download our FREE report
    Four Hundred Monitor Calendar:  Latest info on national conferences, local events, & Webinars

    IT Jungle Store Top Book Picks

    BACK IN STOCK: Easy Steps to Internet Programming for System i: List Price, $49.95

    The iSeries Express Web Implementer's Guide: List Price, $49.95
    The iSeries Pocket Database Guide: List Price, $59
    The iSeries Pocket SQL Guide: List Price, $59
    The iSeries Pocket WebFacing Primer: List Price, $39
    Migrating to WebSphere Express for iSeries: List Price, $49
    Getting Started with WebSphere Express for iSeries: List Price, $49
    The All-Everything Operating System: List Price, $35
    The Best Joomla! Tutorial Ever!: List Price, $19.95

    Stone Bond Hooks Up with K2 for Enterprise Integration Oracle Takes The Midrange Fight To IBM

    Leave a Reply Cancel reply

Volume 11, Number 28 -- September 28, 2011
THIS ISSUE SPONSORED BY:

WorksRight Software
SEQUEL Software
System i Developer

Table of Contents

  • Data Needed to Debug Authority Failures, Part 2
  • A Better Way To Read a Job Log
  • Checking Cache Battery Status Without STRSST

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Power Systems Grows Nicely In Q3, Looks To Grow For All 2025, Too
  • Beta Of MCP Server Opens Up IBM i For Agentic AI
  • Sundry IBM i And Power Stack Announcements For Your Consideration
  • Please Take The IBM i Marketplace Survey
  • IBM i PTF Guide, Volume 27, Number 43
  • IBM Pulls The Curtain Back A Smidge On Project Bob
  • IBM Just Killed Merlin. Here’s Why
  • Guru: Playing Sounds From An RPG Program
  • A Bit More Insight Into IBM’s “Spyre” AI Accelerator For Power
  • IBM i PTF Guide, Volume 27, Number 42

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle