- Home
- Skills
- APIs & Backend
- as400 spool files
as400 spool files
Find, read, and analyze IBM i (AS/400) spooled files, joblogs, and reports across system output queues.
$2
Works with the AI Agents you already use
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)
| Attribute | Value |
|---|---|
| Spool File | QPJOBLOG |
| Number | 3 |
| Job ID | 123456/JSMITH/BILLING |
| Status | FINISHED |
| Total Pages | 14 |
| Created | 2024-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
- Use
as400_sql_queryto check if the record exists inPRODLIB/SALESPF. - Inspect
ARPGMsource code at statement 120 to see if the %FOUND BIF is being handled. - 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
*SCSand*AFPDSfiles 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
QPJOBLOGfiles 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
- Locate: Use
as400_spool_searchwith user or date filters to find the specific spooled file ID. - Inspect: Execute
as400_spool_infoto check file size and attributes before attempting a read. - Retrieve: Call
as400_spool_readwith specific page ranges to extract text data. - 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
QPJOBLOGmessage IDs. - Verifying report logic by comparing printed totals against live SQL database queries.
- Extracting specific invoice or label data from application-generated
*SCSoutput. - 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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