as400 spool files

    1

    Find, read, and analyze IBM i (AS/400) spooled files, joblogs, and reports across system output queues.

    $2

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    as400 spool files

    Example session with this skill installed

    Find the most recent QPJOBLOG for user JSMITH, check its size, and read the last 2 pages to find why the job failed.

    • Read your context and instructions
    • Compiled the as400 spool files

    I have located the most recent joblog for JSMITH and analyzed the failure.

    Joblog Analysis: QPJOBLOG (Job 123456/JSMITH/BILLING)

    AttributeValue
    Spool FileQPJOBLOG
    Number3
    Job ID123456/JSMITH/BILLING
    StatusFINISHED
    Total Pages14
    Created2024-05-20 14:30:05

    Error Log Extraction (Pages 13-14)

    5770SS1 V7R4M0 190621                Job Log                 PUB400    05/20/24 14:30:05          Page   13
      ...
      CPF5006    Diagnostic              30   05/20/24  14:30:04  QDBGETM      QSYS        06EF     ARPGM       MOD1        120
                 Message . . . . :   Record not found in file SALESPF.
                 Cause . . . . . :   An inquiry for a record in member SALESPF file SALESPF in library PRODLIB failed.
      RNX1211    Escape                  50   05/20/24  14:30:05  QRNXIE       QSYS        *STMT    ARPGM       MOD1        *STMT
                 From structure: QRNXIE / QSYS / *STMT / 2345
                 To structure: ARPGM / MOD1 / 120
                 Message . . . . :   I/O error CPF5006 was detected in file SALESPF.
    

    The job failed with a

    CPF5006 (Record not found) followed by a terminal

    RNX1211 error in program ARPGM at statement 120. This indicates the RPG program attempted to chain to a record in SALESPF that does not exist.

    Next steps

    1. Use as400_sql_query to check if the record exists in PRODLIB/SALESPF.
    2. Inspect ARPGM source code at statement 120 to see if the %FOUND BIF is being handled.
    3. Check the job's library list to ensure it was looking in the correct environment.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Legacy IBM i systems generate vast amounts of operational data trapped in spooled files. This skill provides the specialized tools to locate, read, and interpret joblogs, reports, and system dumps directly from output queues.

    What it does

    • Multi-criteria searching uses filters like user, job name, date ranges, and user data labels to find specific documents across the entire system.
    • Content extraction retrieves text from *SCS and *AFPDS files while handling page breaks and cleaning control characters.
    • Metadata analysis inspects page counts, form types, LPI/CPI, and the specific program that generated the output.
    • Automated diagnosis parses QPJOBLOG files to identify message IDs, statement numbers, and root causes of job failures.
    • Queue management lists libraries and output queues to monitor file counts and statuses.

    How it works

    1. Locate: Use as400_spool_search with user or date filters to find the specific spooled file ID.
    2. Inspect: Execute as400_spool_info to check file size and attributes before attempting a read.
    3. Retrieve: Call as400_spool_read with specific page ranges to extract text data.
    4. Analyze: Cross-reference report columns with DDS definitions or SQL queries to verify data accuracy.

    Frameworks & tools

    The skill requires the as400-mcp-basics prerequisite and interacts with IBM i (AS/400) spooled file APIs. It handles data types including *SCS, *AFPDS, *LINE, and *USERASCII.

    Why this beats prompting it yourself

    Standard LLMs struggle with the complex naming conventions of IBM i spooled files, where multiple files share names and are differentiated only by job numbers. This skill codifies the specific search-then-read workflow required to navigate output queues without timing out or hitting buffer limits.

    Use cases

    • Debugging batch job failures by extracting and analyzing QPJOBLOG message IDs.
    • Verifying report logic by comparing printed totals against live SQL database queries.
    • Extracting specific invoice or label data from application-generated *SCS output.
    • Monitoring system print queues for held files or high volume counts.

    Known limitations

    Read-only access. It cannot delete, move, hold, or release files. Output from *AFPDS files is returned as raw text only, losing visual overlays and precise image positioning.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.

    Read-only access. Cannot move or delete files. AFPDS output is text-only. Requires specific authority to output queues. Byte-cap limits on very large files.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 7 days ago

    Software
    As400 Basics MCP

    Permissions

    Read Files
    Write Files
    Listed7 days ago

    What's inside

    Frequently Asked Questions

    Find, read, and analyze IBM i (AS/400) spooled files, joblogs, and reports across system output queues.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use as400 spool files on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in APIs & Backend