Work with Members Using PDM (WRKMBRPDM)

Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC)
Threadsafe: No
Parameters
Examples
Error messages

The Work with Members Using PDM (WRKMBRPDM) command enables you to work with a list of members in one database file. Using this command, you can bypass the Programming Development Manager (PDM) menu and the Specify Members to Work With display.

Top

Parameters

Keyword Description Choices Notes
FILE File Single values: *PRV
Other values: Qualified object name
Optional, Positional 1
Qualifier 1: File Name
Qualifier 2: Library Name, *PRV, *LIBL, *CURLIB
MBR Member Character value, *ALL, *PRV Optional, Positional 2
MBRTYPE Member type Character value, *ALL, *PRV, *BLANK, BAS, BAS36, BAS38, BASP, BASP38, C, CBL, CBLLE, CBL36, CBL38, CICSC, CICSCBL, CICSCBLLE, CICSMAP, CICSSQLCBL, CLD, CLLE, CLP, CLP38, CMD, CMD38, CPP, DSPF, DSPF36, DSPF38, FTN, ICFF, LF, LF38, MENU, MNU, MNUCMD, MNUDDS, MNU36, MSGF36, OCL36, PAS, PF, PF38, PLI, PLI38, PNLGRP, PRTF, PRTF38, QRY38, REXX, RMC, RPG, RPGLE, RPG36, RPG38, RPT, RPT36, RPT38, SPADCT, SQLC, SQLCPP, SQLCBL, SQLCBLLE, SQLFTN, SQLPLI, SQLRPG, SQLRPGLE, TBL, TXT Optional, Positional 3
Top

File (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.

Single values

*PRV
Work with the members of the same file that was used in your previous WRKMBRPDM session.

Qualifier 1: File

name
Specify the name of the physical file that contains the members you want to work with.

Qualifier 2: Library

*LIBL
Type *LIBL followed by a file name to search the current library list for the file you want to work with. If the command WRKMBRPDM FILE(file name) is used, PDM will search the library list for the file specified.
*PRV
Work with a physical file in the same library that was used in your previous WRKMBRPDM session. You can specify a different file in the previous library by using the following format: FILE(*PRV/QRPGSRC).
*CURLIB
Work with a physical file in the current library for the job. If no current library is defined, QGPL is the default value.
name
Specify the name of the library that contains the file and members that you want to work with.
Top

Member (MBR)

Specifies the member or members you want to work with. You can use this parameter to work with all the members or a subset of members in the specified file.

*ALL
Work with all members in the specified file.
*PRV
Work with the same set of members that was used in your previous WRKMBRPDM session.
generic-name
Specify the generic name of the file members that you want to work with.

The generic name can be in one of the following formats:

ABC*
Displays a list of all members that begin with the characters ABC. For example, ABC, ABCD, or ABCTEST.
*ABC
Displays a list of all members ending with the characters ABC. For example, ABC, DABC, or TESTABC.
*B*
Displays a list of all members that have the character B anywhere in the name. For example, B, BALL, ABCD.
A*C
Displays a list of all members that begin with the character A and end with the character C. For example, AC, ABC, or AZZZC.
"a*"
Displays a list of all members with quoted names that start with the letter a. For example, "a", "aB", "aD".
**ALL
Displays a list of all members ending with ALL. For example, ALL, BALL, or TESTALL. The double asterisk is needed in this case, since *ALL is defined as the special value to display a list of all members.
name
Specify the name of the single file member that you want to work with.
Top

Member type (MBRTYPE)

Specifies the member type for members you want to work with. You can use this parameter to work with all the member types in a specified file or a subset of members which matches a specific or generic member type.

*ALL
Work with file members of all member types, including those with no type.
*PRV
Work with members with the same member type that was used in your previous WRKMBRPDM session.
*BLANK
Work with only those members with no member type value.
member-type
Specify a member type to display a list of all members of that particular type.

You can use a member type that you have created, or use one of the following standard member types used by PDM commands.

BAS
BASIC
BAS36
BASIC System/36
BAS38
BASIC System/38
BASP
BASIC Native Procedure
BASP38
BASIC System/38 Native Procedure
C
C Language
CBL
COBOL
CBLLE
Integrated Language Environment* COBOL/400
CBL36
COBOL System/36
CBL38
COBOL System/38
CICSC
CICS C
CICSCBL
CICS* COBOL
CICSMAP
CICS Map
CICSSQLCBL
CICS DB2/400 Query Manager COBOL
CLD
C Locale Description
CLLE
Control Language Integrated Language Environment*
CLP
Control Language
CLP38
System/38 Control Language
CMD
Command
CMD38
Command System/38
CPP
C++
DSPF
Display File
DSPF36
Display File System/36
DSPF38
Display File System/38
FTN
FORTRAN/400
ICFF
Inter-System Communications Function File
LF
Logical File
LF38
Logical File System/38
MENU
UIM MENU
MNU
Menu
MNUCMD
Menu Command
MNUDDS
Menu Data Description Specifications
MNU36
Menu System/36
MSGF36
Message File For System/36
OCL36
System/36 Operator Control Language
PAS
Pascal
PF
Physical File
PF38
Physical File System/38
PLI
PL/I
PLI38
PL/I System/38
PNLGRP
Panel Group
PRTF
Printer File
PRTF38
Printer File System/38
QRY38
S/38 QUERY
REXX
Restructured Extended Executor Language
RMC
RM/COBOL-85**
RPG
RPG/400
RPGLE
Integrated Language Environment RPG/400
RPG36
RPG System/36
RPG38
RPG System/38
RPT
RPG Auto Report
RPT36
RPG Auto Report System/36
RPT38
RPG Auto Report System/38
SPADCT
Spelling Aid Dictionary
SQLC
DB2/400 Query Manager C
SQLCPP
DB2/400 Query Manager C++
SQLCBL
DB2/400 Query Manager COBOL
SQLCBLLE
DB2/400 Query Manager Integrated Language Environment COBOL/400
SQLCLE
DB2/400 Query Manager C/400 Integrated Language Environment
SQLFTN
DB2/400 Query Manager FORTRAN
SQLPLI
DB2/400 Query Manager PL/I
SQLRPG
DB2/400 Query Manager RPG
SQLRPGLE
DB2/400 Query Manager Integrated Language Environment RPG/400
TBL
Table
TXT
Text
generic-member-type
Specify the generic member type of the file members that you want to work with.

The generic member type can be in one of the following typical formats:

RPG*
Displays a list of all members whose member type begins with the characters RPG. For example, RPG, RPG36, and RPG38.
*C
Displays a list of all members whose member type ends with the character C. For example, C and SQLC.
*I*
Displays a list of all members that have the character I anywhere in the member type. For example, ICFF, PLI, PLI38, and SQLPLI.
R*36
Displays a list of all members whose member type begins with the character R and ends with the characters 36. For example, RPG36 and RPT36.
"a*"
Displays a list of all members with quoted member types that start with the letter a. For example, "a", "aB", "aD".
**ALL
Displays a list of all members whose member type ends with ALL. For example, ALL, BALL, or TESTALL. The double asterisk is needed in this case, since *ALL is defined as the special value to display a list of members with all member types.
Top

Examples

Example 1: Work with All Members in a File

WRKMBRPDM   FILE(*PRV)  MBR('*ALL')

This command allows you to work with all of the members of the same file you worked with in the previous WRKMBRPDM session.

Example 2: Work with Members of One Type

WRKMBRPDM   FILE(*LIBL/MYSRCFILE)  MBRTYPE('CLP')

This command allows you to work with all members of source file MYSRCFILE that have a member type of CLP (Control Language Program). The source file is located using the job library list.

Example 3: Work with a Members by Generic Name

WRKMBRPDM   FILE(MYLIB/MYSRCFILE)  MBR('PAY*')

This command allows you to work with all members of source file MYSRCFILE in library MYLIB with member names that begin with the letters PAY.

Top

Error messages

*ESCAPE Messages

PDM0055
Error while processing the &1 command.
Top