Keyword invocation from REXX

Purpose
Displays a list of templates that includes all template types. The Template List can be invoked directly from a REXX exec.
Usage notes
When invoked from an ISPF Command line without any parameters, or from the File Manager Utilities menu, the Template list panel is displayed. If you specify any parameters, the Template Member List panel is displayed.
Options
None.
Related functions
None.
Figure 1. Syntax

1 $PWT
1! INPUT=DDIN
1? INPUT=ddname
1? DSNIN=dsname
2? MEMBER=member1
1! LIMIT=Nolimit
1 LIMIT=genlimit
1 HIDE=Yes
1 HIDE=No

Parameters

INPUT=ddname
Defines a reference to a DD or TSO ALLOC statement for the input data set to be displayed in PDSE Workbench. The default is DDIN. The allocated ddname must be a single PDS or PDSE. Concatenated data sets are not supported.
DSNIN=dsname
Defines the name of the cataloged input PDS or PDSE. The name can include a member name or member name pattern in parentheses. If the member name is specified here, the MEMBER parameter must not be specified.
MEMBER=member1
The name of a single member or a pattern representing one or more members of the PDS or PDSE to display in the member list. A pattern is a partial member name that uses either an * (asterisk) or % (percent sign) as place holders:
  • A * symbol represents a string of characters.
  • A % symbol represents only a single character.
LIMIT=genlimit|Nolimit
Specifies the maximum number of generations to be displayed in the member list for each member. Range: 0 - 2000000000.

LIMIT=0 displays member alias information but does not display any member generations. LIMIT=Nolimit displays all member generations that match the member name or member name pattern. Current members (generation 0) are always displayed.

genlimit is ignored for data sets that do not support member generations.

HIDE=Yes|No
Yes
Displays the Template Member List panel with the input fields hidden to maximize the size of the member list.
No
Displays the full Template Member List panel with all input fields displayed.

When the HIDE keyword is not specified, the previous setting is used, which defaults to HIDE=NO for first-time users. Once the Template Member List panel is displayed, use the HIDE command to toggle the display of the input fields.

Example keyword invocation from REXX

/* REXX invoke Template List */
ARG DSNIN
if DSNIN = '' then do            
  say 'DATA SET NAME REQUIRED '  
  exit 8                         
end                              
address TSO                      
'ALLOC FI(FMNPRINT) DUMMY REUSE'                               
address ISPEXEC                                               
'SELECT CMD(FMNMAIN $PWT DSNIN='||DSNIN||,                  
                       ',LIMIT=NOLIMIT',    
                       ') NEWAPPL(FMN) MODE(FSCR) PASSLIB'     
address TSO                                                    
'FREE FI(FMNPRINT)’