• 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
    DRV Tech

    Get More Out of Your IBM i

    With soaring costs, operational data is more critical than ever. IBM shops need faster, easier ways to distribute IBM applications-based data to users more efficiently, no matter where they are.

    The Problem:

    For Users, IBM Data Can Be Difficult to Get To

    IBM Applications generate reports as spooled files, originally designed to be printed. Often those reports are packed together with so much data it makes them difficult to read. Add to that hardcopy is a pain to distribute. User-friendly formats like Excel and PDF are better, offering sorting, searching, and easy portability but getting IBM reports into these formats can be tricky without the right tools.

    The Solution:

    IBM i Reports can easily be converted to easy to read and share formats like Excel and PDF and Delivered by Email

    Converting IBM i, iSeries, and AS400 reports into Excel and PDF is now a lot easier with SpoolFlex software by DRV Tech.  If you or your users are still doing this manually, think how much time is wasted dragging and reformatting to make a report readable. How much time would be saved if they were automatically formatted correctly and delivered to one or multiple recipients.

    SpoolFlex converts spooled files to Excel and PDF, automatically emailing them, and saving copies to network shared folders. SpoolFlex converts complex reports to Excel, removing unwanted headers, splitting large reports out for individual recipients, and delivering to users whether they are at the office or working from home.

    Watch our 2-minute video and see DRV’s powerful SpoolFlex software can solve your file conversion challenges.

    Watch Video

    DRV Tech

    www.drvtech.com

    866.378.3366

    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

  • Tool Aims To Streamline Git Integration For Old School IBM i Devs
  • IBM To Add Full System Replication And FlashCopy To PowerHA
  • Guru: Decoding Base64 ASCII
  • The Price Tweaking Continues For Power Systems
  • IBM i PTF Guide, Volume 27, Numbers 31 And 32
  • You Can Now Get IBM Tech Support For VS Code For i
  • Price Cut On Power S1012 Mini Since Power S1112 Ain’t Coming Until 2026
  • IBM i: Pro and Con
  • As I See It: Disruption
  • IBM i PTF Guide, Volume 27, Number 30

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