How can we help you?

We have hundreds of highly-qualified, experienced experts working in 70+ technologies.

IBM i e-Book

A Developer’s Guide to Mastering IBM i Concepts

Development Tools

Program Development Manager

PDM stands for Program Development Manager , a utility that allows you to create and manage source code and objects on the AS/400 system. PDM uses the Source Entry Utility (SEU) as the editor for entering and modifying source statements. PDM also provides options to compile, debug, and run programs. You can use PDM to work with libraries, objects, members, and user-defined options.

Managing PDM levels and Commands

Initiating, PDM (Program Development Manager) can be done through the versatile ‘STRPDM’ command, offering a comprehensive menu for users to select their preferred level of operation, whether it’s for library management, object manipulation, or member handling. Alternatively, users can employ specific commands tailored to their intended focus.

  • WRKLIBPDM allows users to manage libraries efficiently within the PDM environment.
  • WRKOBJPDM provides tools for effective object management in the PDM context.
  • WRKMBRPDM offers specialized capabilities for handling file members seamlessly using PDM.

Work with Libraries

The Work with Libraries Using PDM (WRKLIBPDM) command allows you to work with a single library or multiple libraries. Using this command, you can bypass the Programming Development Manager (PDM) menu and the Specify Libraries to Work With display.

Steps:
  • Type WRKLIBPDM on the command line and press F4.

  • A prompt opens with multiple library selection options.
    • *PRV: Continue working with the same library or libraries used in the previous WRKLIBPDM session.
    • *LIBL: Operate on all libraries listed in the job’s library list.
    • *USRLIBL: Focus on libraries within the user portion of the job’s library list.
    • *ALL: Include all libraries, encompassing system (QSYS and QTEMP) and user libraries.
    • *ALLUSR: Engage with all non-system libraries, encompassing user-created ones.
    • *CURLIB: Concentrate on the current library for the job; if unspecified, defaults to QGPL.

  • Select the library and press Enter.

Work with Objects

The Work with Objects Using PDM (WRKOBJPDM) command allows you to work with a list of objects in one library. Using this command, you can bypass the Programming Development Manager (PDM) menu and the Specify Objects to Work With display.

Steps:
  • Type WRKOBJPDM and press F4.
  • A prompt will open with four options.
    • Library: Specifies the library that contains the objects you want to work with.
    • Object: Specifies the library that contains the objects you want to work with.
    • Object Type: Specify the object type for objects you want to work with.
    • Object attribute: Specifies the object type for objects you want to work with.


Note: The *PRV setting in the “Library” field defaults to the user’s previously accessed library but can be overridden with a specific library name. The “Object” and “Object type” options further refine the displayed objects.

Below is the resulting screen after executing the WRKOBJPDM command with the library set to QGPL and *ALL selected for the other options.

By utilizing the ‘WRKOBJPDM’ command, you can facilitate the precise identification of source physical files within any designated library. In our scenario, we use the library TSTTXK along with the ‘WRKOBJPDM’ command to easily see the source physical files are displayed on screen.

Work with Members

The Work with Members Using PDM (WRKMBRPDM) command allows you to work with a list of members in one database file. The command WRKMBRPDM is used to see all the source members of a source physical files.

Steps:
  • Type WRKMBRPDM and press F4.
  • A prompt will open with 3 options.
    • File: Specifies the database file that contains the members you want to work with. The file can be a source physical file or a data physical file.
    • Member: Specifies the member or members you want to work with.
    • Member type: Specifies the member type for members you want to work with.

  • The screen resulting from command WRKOBJPDM, with the library specified as TSTTXK, and *ALL on the other ptions, is shown below.

STRPDM

To start PDM with STRPDM, you can follow these steps:

  • Type STRPDM on any command line and press Enter.
  • The PDM menu will be displayed, where you can choose the level at which you want to work libraries, objects, or members.

  • Select the option that corresponds to your desired level and press Enter. In our case, we are taking 3 – work with members.

  • You will see a screen where you can specify the library, object, or member name and type that you want to work with. You can also use wildcard (*) to match multiple names or types.

PDM Options

PDM offers a multitude of options for versatile libraries, object, and member management. Here are some common tasks you can perform:

  • – Option 2: Edit members using the Source Entry Utility (SEU).
  • – Option 4: Delete objects or members.
  • – Option 5: Display objects or members.
  • – Option 7: Rename objects or members.
  • – Option 8: View attributes of objects or members.
  • – Option 9: Work with user-defined options.
  • – Option 14: Compile members using default commands.
  • – Option 15: Copy objects or members.
  • – Option 16: Promote objects or members to other libraries.
  • – Option 18: Print objects or members.

You can also create your custom options to execute any desired command, such as adding a library to your library list or managing spooled files. These user-defined options can be stored in an option file, with the default being QAUOOPT in library QGPL. However, you have the flexibility to create and configure your own option file as needed.

Additional Commands and Options in PDM for AS400

In addition to the commonly used PDM (Program Development Manager) options and commands mentioned earlier, here are some other useful commands and options available in PDM on AS/400 (IBM i) that can assist developers and programmers in various tasks:

  • Display Message (DSPMSG): View system and job-related messages to monitor system activity and diagnose issues.
  • Work with Data Areas (WRKDTAARA): Manage data areas, which are objects used for storing and retrieving data in a specific format.
  • Work with Data Queues (WRKDTAQ): The command WRKDTAQ is used to display the list of available data queues from one or more libraries.
  • Work with Spool Files (WRKSPLF): Display and manage spool files generated by batch jobs and reports.
  • Work with Service Programs (WRKSRVPGM): Manage service programs that contain reusable routines and procedures.
  • Work with Device Files (WRKDEVD): Manage device files and configurations for printers and devices.
  • Work with Job Logs (WRKJOBLOG): Access and review job logs for job-related messages and diagnostic information.
  • Work with Printer Files (WRKOUTQ): Manage output queues and printer files, including starting, stopping, and managing print jobs.
  • Work with Message Queues (WRKMSGQ): Handle message queues, view, and interact with messages in message queues.
  • Work with Message Subfiles (WRKMSG): Manage message subfiles used for displaying messages within programs.
  • Work with Service Entry Points (WRKSRVENT): List and manage service entry points used in service programs.
  • Work with Data Files (WRKDBF): Interact with data files, including viewing and managing records within them.
  • Work with Jobs (WRKJOB): Display information about active jobs and manage job-related tasks.
  • Work with Job Queues (WRKJOBQ): Manage job queues and prioritize job processing.
  • Work with Communications Resources (WRKCFGSTS): Review and configure communication resources and settings.

These commands, along with the PDM options mentioned earlier, provide a comprehensive set of tools for developers and administrators working on the AS/400 platform. They cover various aspects of system management, job control, data manipulation, and application development.

How can we help you?

We have hundreds of highly-qualified, experienced experts working in 70+ technologies.

share_iconShare
X

Awards and Certifications

company-logo
company-logo
company-logo
company-logo
company-logo
company-logo
company-logo
company-logo
company-logo
company-logo