Integrative Systems

AS/400 (IBM i) Commands – Ultimate Guide

AS400 Commands

Connect with our experts
to get all your answers

    AS400 commands are a part of the Control Language (CL) and are executed via a command-line interface to manage, operate, and automate tasks on IBM i. These commands usually follow a “Verb-Noun” naming structure and used across well-known areas such as –

    • Job & System Management
    • Library & Object Management
    • File & Data Management
    • User & Security
    • Developer Tools

    We cover everything you need to know – what AS400 commands are, the different types, practical examples, and the benefits they bring to users and administrators alike

    What Are AS400 Programming Commands?

    IBM developers wrote IBM AS400 programming commands to perform tasks such as backing up data, compiling programs, changing system configurations, and displaying or deleting system object details.

    These commands manage system-level issues and are useful for drafting user-level applications. Mostly, AS400 commands are used by programmers + system administrators + users.

    Programming commands on the AS/400 can range from file/library management to job management, data manipulation, security & systems, and more.

    List of common AS400 System Commands includes –

    CRTBNDRPGCreate a bound RPG program
    RUNSQLRun SQL statements
    CRTPFCreate a physical file
    CRTLFCreate a logical file
    STRDBGStart debugger
    ENDDBGEnd debugger
    DLTFDelete file

    For specific control over programming tasks, each AS 400 command follows a set of parameters to execute a function.

    Now, consider the different AS400 commands with examples useful for your systems.
    CONTACT US NOW

    What are the Different Types of AS400 Commands?

    IBM i is a robust and integrated operating system that supports various types of commands to cater to different aspects of system operation and management.

    Each AS400 command has the following aspects –

    • Up to 10 characters
    • A mix of 2-3 truncated words
    • A verb followed by the object

    Here’s a breakdown of the various AS400 command types –

    AS400 CL Commands (Control Language)

    CL commands are the foundation of the AS400’s command system. They are used to interact with the operating system, control jobs, work with the database, and handle system configurations.

    These commands are identifiable by their three-letter prefixes. See the examples below –

    • WRK for work-related commands – WRKJOBQ – work with job queues
    • CRT for creation commands – CRTLIB – create a library

    AS-400 SQL Commands (Structured Query Language)

    To manage and modify databases, AS400 SQL commands are useful.

    With the AS/400’s integrated DB2 database, SQL commands can perform operations such as –

    • Data query
    • Table creation
    • Database object management

    See the examples of AS400 system commands –

    SELECT, INSERT, UPDATE, DELETE

    AS 400 RPG Commands

    RPG (Report Program Generator) is a high-level programming language used on the AS 400 system for business applications.

    While RPG isn’t a command, the system includes commands like (CRTBNDRPG) to compile RPG code, (STRDBG) to debug, and manage RPG programs.

    AS/400 System Control Commands

    These types of AS400 commands are used to –

    • Start and stop the system and its services
    • Manage jobs
    • handle services
    • Schedule tasks
    • Configure system parameters

    For example –

    PWRDWNSYS command – To Power Down the System

    STRSST command – To Start the System Service Tools

    AS400 File and Member Commands

    AS/400 uses this set of commands to manage files (physical and logical) and their members (data within the files). AS400 iSeries Commands such as CRTPF (create physical file) and ADDPFM (add physical file member) fall into this category.

    As these commands are the primary interface for system interaction, you must know the important benefits of using commands in AS400 systems.

    Moving on, let’s understand why these commands are a must for users.
    CONTACT US NOW

    Why AS400 Commands Are Essential for AS400 Users?

    AS400 (Application System/400) stands out compared to the new computer systems operated through visual interfaces because it relies on text-based commands.

    There are multiple reasons why these commands are so crucial for AS/400 users.

    Here we have listed a few important reasons.

    Direct System Access

    AS400 commands provide a simple, direct way to communicate with the system that allows you or your team of users to perform tasks without confusion.

    It is useful for routine operations and when the AS400 developers need to be sure of the exact action being performed.

    AS 400 reduces the layers of menus and buttons found in GUIs using commands, ensuring a minimized margin of errors and desired results.

    Automation

    Setting up scripts is possible with AS400 commands to handle tasks that need to be repeated. It ensures tasks are being executed similarly by your team of AS400 programmers. Additionally, it helps you in

    • Maintaining consistency
    • Upholding accuracy to complete the task

    Consider a situation where you are automating end-of-day (EOD)processes, data backups, and system maintenance tasks by utilizing an IBM i command script.

    After these scripts are tested and executed properly, it continues to follow the same series of steps whenever they run. Here, repeatability shows that tasks are completed without changes, lessening the risk of errors.

    Control and Management

    The AS/400 commands give you a lot of control over the system, letting your AS400 developers manage how they run and change settings in a detailed way.

    This feature is essential for keeping your AS 400 system running seamlessly. With these well-structured commands, you can handle differential functions, such as –

    • Starting and stopping jobs
    • Monitoring system performance
    • Controlling access to various system resources

    These commands can empower your AS400 administrators to adapt to changing workload or business needs and effectively implement new processes or even edit existing ones.

    Efficiency

    Once your dedicated team of AS400 programmers becomes handy on AS400 commands, your team can simply rely on commands and stop navigating through a multi-step graphical interface.

    It increases the response to user input when the programmers are sitting on tight deadlines and must make quick decisions.

    IBM AS400 Commands allow for the swift execution of complex sequences that would otherwise take multiple clicks and screen transitions.

    The efficiency extends to executing batch jobs, where a single command can initiate a series of actions.

    Batch processing

    Batch processing using AS400 commands is a powerful feature that enables your team of AS400 programmers to manage large-scale data operations and automate sequences.

    You can run these Commands in groups, or in ‘batches,’ which is great for dealing with a large amount of data or performing a series of tasks under time constraints. It helps make the best use of the AS400 system’s resources and your programmer’s time.

    Consider the scenario below for better understanding.

    If you automate day-end processing for financial transactions, batch updates, or customer records updates.

    The dependability of AS/400 in executing these batch commands ensures that –

    • Consistent process completion
    • No human errors
    • Data integrity maintenance
    • Operational continuity

    The necessity of utilizing commands is enormous, but you must ensure your team of AS400 programmers has early access to a commonly used command cheat sheet.

    Keep reading to find out the one-stop AS400 commands cheat sheet your team needs.

    Commonly Used AS400 Commands Cheat Sheet

    We have created a detailed yet useful guide for commonly used commands with their technical purpose.

    Whether you’re an experienced AS 400 operator or a beginner to the platform, this cheat sheet provides a detailed and helpful summary of the key commands needed for daily operations.

    The tables below show you what the most common AS400 commands are used for in the enterprise environment, taken from the IBM documentation site

    AS400 (OS400) CommandTechnical Purpose
    signoffEnds the current interactive session, enabling the user to log out of the AS400 system.

    go <menu name>

    eg go `main`

    Navigates the user to a specified menu (say ‘main’ menu) on the AS 400 system, facilitating access to different functionalities.

    addlible

    (Add Library List Entry)

    On the AS400 system, libraries serve a purpose like databases on other platforms. This command adds a library to the library list, allowing programs and commands to access objects within that library.

    dsplibl

    (Display Library List)

    Displays the current library list on the AS400, showing the sequence in which libraries are searched for objects.
    wrkliblInitiates a work environment in AS400 to display and manage library-related information.

    wrkactjob

    (work with active jobs)

    Provides an interface to view and manage active jobs on the AS/400, displaying detailed information about each active job.

    wrksplf

    (Work with SPOOL files)

    Allows AS400 users to view, manage, and control the output generated by various processes on the system, known as SPOOL files.

    wrkwtr

    (work ‘print’ writer)

    Enables AS400 users to view and manage printer-related information, including the status of print writers.

    wrkjobq

    (work job queue)

    Displays information about jobs in a specified job queue, allowing AS400 users to manage and control job execution.

    wrkjobscd

    (work with the job scheduler)

    Provides a view of scheduled jobs and allows users to manage and control job scheduling activities in AS-400.

    dspobj

    (display object)

    Displays detailed information about a specified object in the AS400, including its attributes and properties.

    dsppgm

    (Display Program)

    Allows AS400 users to view detailed information about a specified program, including its attributes, parameters, and source details.

    wrkusrprf

    (Work with User Profiles)

    Provides an interface to manage user profiles, allowing administrators to view, add, modify, or delete user profiles on the AS/400 system.

    chgsysval

    (Change System Value)

    Enables AS400 admins to modify system-wide settings and configurations, affecting the overall behavior of the AS 400 operating system.

    chgusrprf

    (Change User Profile)

    Allows AS400 administrators to modify attributes and settings associated with a specific user profile, such as password, authorities, and special authorities.

    wrkmsgq

    (Work with Message Queues)

    Provides a platform within AS400 to interact with message queues, allowing users to display, send, or delete messages within a specified message queue.

    crtlib

    (Create Library)

    Creates a new library on the AS/400 system, providing a logical grouping for objects and facilitating organization and management.

    cpyf

    (Copy File)

    Facilitates the duplication of files, allowing users to copy data from one file to another on the AS400 system.

    wrkf

    (Work with Files)

    Offers a comprehensive interface on AS/400 for managing files, allowing users to view, create, modify, or delete files and file members.

    dsppfm

    (Display Physical File Member)

    Displays the contents of a specific physical file member, providing a detailed view of the data within the member.

    edtf

    (Edit File)

    Opens a specified file in AS 400 for interactive editing, allowing users to modify the content directly.

    wrkftr

    (Work with File Transfer)

    Manages file transfers between different systems, allowing users to send or receive files to and from the AS400 system.

    dltf

    (Delete File)

    Removes a specified file from the AS/400 system, permanently deleting the file and its contents.

    dltdupobj

    (Delete Duplicate Objects)

    Deletes duplicate objects, providing a cleanup mechanism for eliminating redundant items on the AS400 system.

    crtpf

    (Create Physical File)

    Creates a new physical file on the AS-400 system, defining its structure and attributes.

    crtlf

    (Create Logical File)

    Generates a new logical file, allowing users to create alternate views of the data within existing physical files.

    chgpf

    (Change Physical File)

    Modifies the attributes and settings of an existing physical file on the AS400 system.

    chgaut

    (Change Authority)

    Allows AS/400 administrators to modify object-level authorities, determining the access permissions for users or groups.

    cpyfrmimpf

    (Copy From Import File)

    Copies data from an import file into a specified physical file on the AS 400 system.

    wrkcfgsts

    (Work with Configuration Status)

    Provides information about the configuration status of the AS400 system, including hardware and software details.
    chgvar (Change Variable)Modifies the value of a system variable or user-defined variable on the AS400 system.
    addpfm (Add Physical File Member)Adds a new member to an existing physical file on the AS-400 system.
    rmvm (Remove Variable)Removes a specified variable, either system-defined or user-defined, from the AS/400 system.
    chgdbf (Change Data Base File)Provides a means to modify the attributes and settings of an existing database file.
    cpyfrmstmf (Copy from Stream File)Copies data from a stream file into a specified physical file on the AS400 system.
    crtrpgpgm (Create RPG Program)Creates a new RPG (Report Program Generator) program, allowing developers to write and execute business applications.
    crtsrcpf (Create Source Physical File)Allows users to create a new physical file to store source code, typically used for organizing and managing program source members.

    edtrpgsrc

    (Edit RPG Source)

    Opens a specified RPG source member for interactive editing, enabling developers to modify the source code of RPG programs.

    runqry

    (Run Query)

    Executes a predefined or ad-hoc query on the AS 400 system, allowing users to retrieve and display data based on specified criteria.

    dsppgmref

    (Display Program References)

    Displays a list of references to a specified program, showing where and how the program is used within the AS400 system.

    wrklnk

    (Work with Job Links)

    Allows users to view and manage job links, providing information about relationships between jobs on the AS 400 system.

    wrkqry

    (Work with Queries

    Provides a platform to manage and interact with queries on the AS400 system, allowing users to create, modify, or run queries.

    wrksbs

    (Work with Subsystems)

    Provides an interface to manage subsystems on the AS/400 system, allowing users to start, stop, or modify subsystems.

    wrkjobd

    (Work with Job Description)

    Allows users to view and manage job descriptions, providing details about how jobs are initiated and controlled on the AS400 system.

    chgjob

    (Change Job)

    Enables users to modify the attributes and settings of an active job on the AS-400 system.

    chgsbsd

    (Change Subsystem Description)

    Allows users to modify the description and attributes of an existing subsystem on the AS400 system.

    strtcpf

    (Start TCP/IP File Server)

    Initiates the TCP/IP file server on the AS-400 system, enabling communication and file transfer over the TCP/IP protocol.

    endtcpf

    (End TCP/IP File Server)

    Terminates the TCP/IP file server on the AS400 system, closing communication channels and stopping file transfer services.
    strsql (Start SQL)Initiates the SQL (Structured Query Language) interface on the AS400 system, allowing users to execute SQL commands and queries.
    ndsql (End SQL)Terminates the SQL interface on the AS400 system, ending the execution of SQL commands and queries.
    wrkobj (Work with Objects)Allows users to work with objects within the libraries.
    crtusrprf (Create User Profiles)Identify new user profiles within the system, allowing customization to the way system appears.
    crtoutq (Create Output Queue)Generates new output queue for spooled files.
    crtdupobj (Create Duplicate Object)Creates a copy of the existing object or a group of objects.
    crgprtf (Create Printer File)Allows users to generate new printer files for special conditions
    chgprf (Change Profile)Changes some values currently mentioned in the user profile
    dspneta (Display Network Attributes)Showcases network attributes of the system
    dspsyssts (Display System Status)Enables users to print or display data about the latest status of the AS400 system.
    dspdtaara (Display Data Area)Displays the values and attributes of the specific data area.
    edtlibl (Edit Library List)Presents an entry display where users can adjust the user portion of the library list.
    dltsplf (Delete Spooled File)Deletes the specified spooled file from the designated output queue.
    hldjobq (Hold Job Queue)Holds back the processing of all jobs currently waiting on the job queue and any new entries added to the queue after issuing the command.
    ovrdbf (Override with Data Base File)Replace a program’s specified file, adjust file parameters, or both during processing.
    call (Call Program)Calls the program named in the command and passes control to it.
    ftp (File Transfer Protocol)Employed to fetch a file from the remote system.
    rclrsc (Reclaim Resources)Allows users to re-claim the resources of the AS/400 system.

    Your AS400 developers can use the above-shared cheat sheet to improve their work on AS400 systems and help you achieve your desired results.

    Next, you must understand the role of commands in AS400 administration and development.

    How AS400 Commands Support Administration and Development?

    AS400 commands are the essential tools for AS400 administrators to boost the system’s health, deploy configurations, and guarantee everything runs as defined.

    It works smartly, where you can press buttons to begin and manage processes, like having remote access for the overall system.

    In addition to this,  AS400 developers make use of AS400 iSeries Commands to create, edit, and handle the programs that run on the AS 400 system.

    These commands help move through various stages of development, that includes code writing, code testing, and deploying it in the end.

    Simply, the iSeries commands are the basis for boosting user productivity, reducing manual errors, and creating useful applications for your business.

    But to make the most of the commands, your AS400 programmers must be experienced in their efficient use and adept at leveraging their capabilities.

    • Do you want to maximize AS400 system commands?
    • Do you have an in-house team of AS/400 developers who struggle to optimize commands fully?
    • Or is your AS400 technical talent retiring or leaving, and you want an extended team without the burden of hiring in-house?

    Fret not!

    Engage with AS400 consulting services providers. They are AS400 experts who will guide you to make the most out of the AS400 commands for peak performance.

    Uncertain how engaging with AS/400 consultants will help?

    Read on to find out how a dedicated AS400 service provider proves instrumental for your business.

    How AS400 Providers Improve System Performance?

    As your business operations steadily grow, the complexities of managing your AS 400 operations also multiplies.

    This is where the expertise of AS400 experts proves instrumental.

    Here’s how they utilize AS400 programming commands for your business benefit.

    They Fine-tune AS400 Commands to Reduce Processing Time

    There are hundreds of AS-400 commands, and each command impacts the system operations differently. This is where fine-tuning becomes critical.

    The AS400 consulting experts leverage their deep expertise and specialized tools to analyze command usage patterns, identify flaws, and apply required solutions.

    This approach refines commands and improves your AS400 systems’ responsiveness and overall user efficiency.

    They Tailor Commands and Configurations to Align with Specific Business Needs

    Your team of AS/400 administrators and developers may use IBM AS400 commands but may not always have the time or expertise to utilize them fully.

    AS400 service providers step in with proven expertise and resources to precisely tailor commands and ensure alignment with your business objectives.

    They save you valuable time and guarantee top-notch performance without direct involvement of internal resources.

    They Apply Industry Best Practices for AS/400 Command Usage

    Using AS 400 commands is one thing but leveraging them according to the industry standards calls for expert knowledge and endless adaptation to evolving standards.

    An expert AS400 consultant sleeps over the iSeries commands released now and then. And they strive to make the most of it for you.

    They come with a promise that your AS-400 system will run efficiently, adapt to evolving trends, and constantly deliver optimal performance, giving your business the edge it needs.

    Now that you know how an investment in AS400 services partner and AS/400 consultants pays off, let’s look at who is the leading provider of AS400 services in the United States.

    If you want to save time and ensure that your AS 400 systems are managed with professional expertise, then turn to Integrative Systems.

    How Integrative Systems Supports AS400 Command Optimization

    AS400 commands are instrumental in managing system administration and development, providing accuracy, effectiveness, and control.

    If your business wants to uncover the AS/400 system commands with the best potential, you should rely on experts who understand every aspect of AS400 Commands.

    Why Integrative Systems?

    • We have dedicated AS400 programmers who have over 25 years of experience and show a proven track record and unmatched commitment.
    • We have worked with 85+ clients globally, across different business verticals & industries, with an over 90% client retention rate.
    • We have completed complex AS/400 projects for international companies.
    • Our in-depth experience highlights granular knowledge and the capability to use AS400 commands with the highest potential.
    • We provide 24/7/365 guaranteed help and all types of AS400 services to help you succeed first.
    • We delivery solution you rely on for day-to-day operations, enhancement requests, or resolving unforeseen challenges.

    Check out our range of AS400 Services –

    Let’s get talking to discuss your challenges, ideas, and aspirations.

    You can see us here at  contact@integrativesystems.com , and our expert will definitely respond within 2-3 business days.

    Frequently Asked Questions about AS/400 Commands

    How do I execute file management commands on the AS400 system?

    To execute file management on the AS400 system is possible with Control Language (CL) commands, either from the command line or by operating within system menus.

    What are AS400 BRMS Commands?

    AS400 BRMS commands are useful to automate, handle, and track backup, recovery, and media movement policies, including –

    • STRBKUBRM – start backup
    • WRKMEDBRM – work with media
    • SAVLIBBRM – save library
    • RSTLIBBRM – restore library

    How to display all active jobs on a mid-range business server?

    Use the WRKACTJOB (Work with Active Jobs) Command to see all active jobs on an IBM i business server. This command displays system jobs, user jobs, and all active subsystems.

    Can I automate AS400 command sequences?

    Absolutely. You can automate AS/400 command sequences to optimize business processes, enhance security, and minimize human errors. The basic methods include CL Programs, Job Scheduling, Power Automate Desktop, RPA tools, and other similar methods.

    How to create iasp in AS400?

    There are two ways to create iASPs, where the first one utilizes the Configure Device ASP command, i.e. CFGDEVASP, on green screens or utilizing. The other one utilizes System Director Navigator for i.

    Navigation and productivity features in the IBM i (AS/400) command line

    To avoid mistakes while using commands, you must use the instructions below –

    • F4 (Prompt) – Typing a command and pressing F4 opens a prompt screen that lists all available parameters and options.
    • F9 (Retrieve) – Retrieves the last command you entered.
    • GO MAIN – Returns you to the IBM i Main Menu.
    • GO [Topic] – You can type GO followed by a keyword (like GO SAVE or GO JOB) to see a menu of all commands related to that specific task.

    About the Author

    Starting as an RPG programmer and evolving into a customer success leader, Mike has spent 30+ years shaping the IBM i landscape. His experience in IT, presales, and sales enables him to bridge business needs with technical depth. By simplifying even the toughest IBM i modernization challenges, Mike has become a trusted guide for enterprises nationwide.

    He shapes smart account strategies and lasting customer relationships that lead to meaningful, sustained outcomes. At Integrative Systems, Mike guides customers through IBM i modernization with clarity and confidence. His steady, relationship-first approach unites teams, elevates customer experience, and drives long-term growth.

    Related Posts
    Post a Comment

    6 Comments to “AS/400 (IBM i) Commands – Ultimate Guide”

    •  Image Alt

      Lee Jackson

      Thank you for compiling this comprehensive list of AS400 commands! It’s incredibly helpful for both developers and leaders to have quick access to these commands. I appreciate the clear explanations and examples provided. This will definitely streamline our workflow.

    •  Image Alt

      Jabril Bowen

      Great post! The comprehensive list of AS400 commands is incredibly helpful for both developers and leaders. It’s a fantastic resource for quickly referencing key commands. Thank you for putting this together!

    •  Image Alt

      Tom Green

      Great resource! This AS400 commands list is super helpful for both developers and leaders. I appreciate the clear structure and explanations of each command. Looking forward to applying some of these in our projects!

    •  Image Alt

      Roger Allen

      Great post! This AS400 Commands List is super helpful for both developers and leaders. I especially appreciate the clear explanations and examples provided. Looking forward to more in-depth articles on specific commands and their use cases!

    •  Image Alt

      Joshua Milam

      This list is incredibly helpful! As someone new to AS400, having a consolidated resource of commands makes it so much easier to navigate the system. Thanks for putting this together!

    •  Image Alt

      Olivia Scott

      Great compilation of AS400 commands! This list is incredibly helpful for both new and experienced developers. I especially appreciate the clear explanations. Looking forward to applying these in my projects!

    Leave A Comment

    Connect with our experts
    to get all your answers

      COST SAVINGS CALCULATOR
      Calculate the savings on your current IT spend by collaborating with Integrative Systems
      POST CATEGORIES
      Connect with our experts
      to get all your answers

        RECENT BLOGS

        Ready to Transform Your Business? 

        Looking for expert-driven solutions to accelerate your operations?

        We’re here with solutions designed just for you, from start to finish.

          Fill this form, let your IT story unfold,
          Via the details, our solutions behold.

            Fill this form, let your IT story unfold,
            Via the details, our solutions behold.