as400 database catalog

    1

    Explore and document IBM i (AS/400) Db2 database schemas, including physical files, logicals, and field metadata.

    $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 database catalog

    Example session with this skill installed

    Find all tables in the PRODLIB library related to 'orders' and show the structure of the main header file.

    • Read your context and instructions
    • Compiled the as400 database catalog

    I have searched the PRODLIB library for files related to 'orders' and retrieved the details for the primary header file ORDHDRP.

    Database Catalog Analysis: PRODLIB

    File NameTypeText DescriptionFields
    ORDHDRPPhysicalOrder Header Master42
    ORDDETLPhysicalOrder Detail Lines35
    ORDHDRL01LogicalOrder Header by Date (Key: OHORDT)42
    ORDADRPPhysicalOrder Shipping Addresses12

    Structure for ORDHDRP (Order Header Master)

    FieldSQL NameTypeLengthDecText
    OHORD#ORDER_NUMBERPACKED90Unique Order ID
    OHCUSTCUSTOMER_IDZONED70Customer Number
    OHORDTORDER_DATEZONED80Date (YYYYMMDD)
    OHSTATORDER_STATUSCHAR10Status Code
    OHTOTLORDER_TOTALPACKED132Total Amount

    Keys: OHORD# (Unique)

    Access Paths (Logicals):

    • ORDHDRL01: Keyed by OHORDT (Descending) for chronological access.
    • ORDHDRL02: Keyed by OHCUST, OHORD# for customer history lookups.

    Inferred Relationships:

    • Join ORDHDRP to ORDDETL on OHORD# = ODORD#.
    • Join ORDHDRP to CUSTMAST on OHCUST = CMCUST.

    Next steps

    1. Run as400_where_used on ORDHDRP to find dependent views.
    2. Query sample data from ORDHDRP to verify OHSTAT code values.
    3. Search for ORDHDRP in source files to identify processing programs.

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

    About this skill

    Mapping legacy Db2 for i databases is notoriously difficult due to cryptic 10-character names, implicit relationships, and a mix of DDS and SQL definitions. This skill provides a specialized toolset for interrogating the IBM i database catalog to reconstruct data models, locate fields, and trace dependencies.

    What it does

    • Schema Discovery identifies libraries, owners, and descriptions while honoring system permissions.
    • Object Cataloging filters through thousands of physical files, logical files, and views to isolate specific functional areas.
    • Deep Inspection retrieves field-level metadata including short names, SQL names, data types, and decimal positioning.
    • Dependency Mapping identifies logical files, indexes, and views that depend on a specific table.
    • Relationship Inference helps identify join keys in legacy systems where foreign keys are not explicitly declared.
    • Routine Auditing lists SQL procedures and functions within a library to understand business logic.

    How it works

    1. Use as400_table_list with prefix filters to find physical files related to a specific module like an ERP.
    2. Execute as400_column_search to find every instance of a specific field name or description across the library.
    3. Call as400_file_desc and as400_index_list to understand the structure and available access paths for a table.
    4. Run as400_where_used to see which views or indexes will be impacted by a schema change.

    Frameworks & tools

    Specifically built for IBM i (AS/400) environments using Db2 for i. It handles both legacy DDS-defined files and modern SQL DDL objects.

    Why this beats prompting it yourself

    Standard LLMs struggle with the distinction between Physical Files (PF) and Logical Files (LF) or the nuances of packed/zoned decimals. This skill uses specialized tools to query the system catalog directly, ensuring you get actual metadata rather than hallucinations of what an ERP schema might look like.

    Use cases

    • Documenting an undocumented legacy ERP module for a migration project.
    • Finding all tables containing "Customer ID" to ensure data privacy compliance.
    • Investigating the impact of a table change on existing database views.
    • Identifying join keys between files that lack formal foreign key constraints.

    Known limitations

    Does not detect program-level usage in RPG or CL; use source discovery tools for that. Large library searches without filters may time out. Requires the as400-mcp-basics prerequisite.

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

    Requires as400-mcp-basics. Cannot detect RPG/CL program dependencies. Searches on large libraries without prefix filters may time out. Authority restricted by the user profile.

    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

    No special permissions declared or detected

    Listed7 days ago

    What's inside

    Frequently Asked Questions

    This skill specializes in the unique architecture of IBM i, distinguishing between Physical Files (PF) and Logical Files (LF) while correctly interpreting packed/zoned decimal types that standard LLMs often misidentify.

    No, this tool focuses strictly on the database catalog; it does not scan RPG, COBOL, or CL source code to identify where tables are referenced within application logic.

    To ensure optimal performance and avoid timeouts, it is recommended to use prefix filters or library-specific searches when cataloging environments with thousands of objects.

    The skill requires the `as400-mcp-basics` prerequisite to establish a secure connection to your IBM i environment via the Model Context Protocol.

    Yes, the 'Relationship Inference' feature analyzes field metadata and naming conventions to suggest join keys even when formal foreign key constraints were never defined in the legacy schema.

    You receive a specialized toolset for schema discovery, field-level inspection, and dependency mapping, along with lifetime access to any future updates or metadata optimizations.

    New in Data & Databases