- Home
- Skills
- APIs & Backend
- as400 source discovery
as400 source discovery
Find, search, and read IBM i (AS/400) source code including RPG, CL, and DDS with pagination and metadata filtering.
$2
Works with the AI Agents you already use
as400 source discovery
Example session with this skill installed
Find all RPG members in library PRODLIB that reference the table 'MGLPC00F' and read the first 50 lines of the first match.
- Read your context and instructions
- Compiled the as400 source discovery
I searched PRODLIB/QRPGLESRC for the token MGLPC00F. The search scanned 142 members and found 3 matches. I have retrieved the header for the first match, MGLPC01R.
Source Discovery Results: MGLPC00F References
| Library | Source File | Member | Line | Match Text |
|---|---|---|---|---|
| PRODLIB | QRPGLESRC | MGLPC01R | 45 | FMGLPC00F IF E K DISK |
| PRODLIB | QRPGLESRC | MGLPC01R | 102 | C MGLPC00F KLIST |
| PRODLIB | QRPGLESRC | AR0042R | 12 | * Recompiled for change to MGLPC00F |
Source Content: PRODLIB/QRPGLESRC(MGLPC01R)
H OPTION(*SRCSTMT : *NODEBUGIO)
H DFTACTGRP(*NO) ACTGRP(*CALLER)
*----------------------------------------------------------------*
* Program: MGLPC01R
* Desc : Monthly Global Price Calculator
* Author : J. Smith
* Date : 2023-11-15
* Change : WI-8842 - Add logic for MGLPC00F pricing lookup
*----------------------------------------------------------------*
FMGLPC00F IF E K DISK
FPRICELOG O E K DISK
*
D P_Input DS QUALIFIED
D Store 5S 0
D Item 15A
*
Next steps
- Read lines 51-200 of
MGLPC01Rto analyze theKLISTandCHAINlogic. - Search for the
AR0042Rmember to see if it actually uses the file or was just recompiled. - Use
as400_source_listonQCLSRCto find the batch job that calls these programs.
Connects securely to your tools. The creator never sees your data.
About this skill
Legacy IBM i (AS/400) codebases are often undocumented monoliths where finding a specific logic branch feels like searching for a needle in a haystack. This skill provides the specialized tools to navigate libraries, filter source members, and execute targeted content scans without timing out or hitting output caps.
What it does
- Source Inventory lists source files and members within a library, including types, line counts, and modification dates.
- Targeted Reading retrieves source code from RPG, CL, DDS, or SQL members with support for windowed reading of large files.
- Cross-Member Search executes substring searches across hundreds of members to find field references, program calls, or work-item IDs.
- Description Discovery leverages member text descriptions for fast, low-cost initial filtering before performing full content scans.
- Fixed-Format Support preserves leading blanks and column positions essential for legacy fixed-format RPG code.
How it works
- Use
as400_source_listwith a name filter to identify relevant source files like QRPGLESRC or QCLSRC and review their descriptions. - Run
as400_source_searchusing selective tokens like file names or unique field IDs to find every member where that logic is referenced. - Call
as400_source_readto pull the first 150 lines of identified members to check headers and change logs. - Iterate through large members using
fromLineandtoLineparameters to bypass character limits.
Frameworks & tools
This skill requires an active connection to an IBM i (AS/400) partition via an MCP server supporting the as400_source_ toolset. It handles RPG, RPGLE, SQLRPGLE, CL, CLLE, DDS, and copy members.
Why this beats prompting it yourself
Generic LLMs struggle with the strict column-based formatting of legacy RPG and often fail to handle the pagination required for 5,000-line source members. This skill automates the batching and filtering logic needed to scan large IBM i libraries while staying within token and timeout limits.
Use cases
- Find every program that references a specific database field name or file.
- Trace the history of a feature by searching for work-item numbers in source comments.
- Audit a library to find source members that have no corresponding compiled object.
- Extract the file declarations and prototypes from a legacy monolithic RPG program.
Known limitations
Search is limited to 150 members per batch and 1000 matching lines. It cannot find logic in compiled objects if the source member is missing or stale.
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.
Maximum 150 members scanned per search batch. Searches use substring matches, not regex. Requires exact library and file names. Source-only; does not scan compiled object binaries.
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