Work with Members Using PDM (WRKMBRPDM)

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.

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

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.

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.

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
CBL36
COBOL System/36
CBL38
COBOL System/38
CICSC
CICS C
CICSCBL
CICS* COBOL
CICSCBLLE
CICS Integrated Language Environment COBOL
CICSMAP
CICS Map
CICSSQLCBL
CICS DB2 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
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 Query Manager C
SQLCPP
DB2 Query Manager C++
SQLCBL
DB2 Query Manager COBOL
SQLCBLLE
DB2 Query Manager Integrated Language Environment COBOL
SQLCLE
DB2 Query Manager C Integrated Language Environment
SQLFTN
DB2 Query Manager FORTRAN
SQLPLI
DB2 Query Manager PL/I
SQLRPG
DB2 Query Manager RPG
SQLRPGLE
DB2 Query Manager Integrated Language Environment RPG
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.

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.

Error messages

*ESCAPE Messages

PDM0055
Error while processing the &1 command.