TSO invocation of the EZACMD command

To use the EZACMD command in the TSO environment, you must meet the following requirements:
  • Concatenate the hlq.SEZAEXEC library to the SYSEXEC or SYSPROC DD statements in your TSO logon procedure.
  • The TSO user ID must have a valid corresponding OMVS segment defined in the security database.
TSO commands can be entered using ISPF option 6.

Format:

Read syntax diagramSkip visual syntax diagram
                                              .-MAX=100---.   
>>-EZACMD--command name--+-----------------+--+-----------+----><
                         '-command options-'  '-MAX=lines-'   

Parameters

command name and options
The command name is one of the supported z/OS® Communications Server UNIX shell commands.

Command options are any options that the UNIX shell command supports. You must enter the command options in the exact format and case that is required by the z/OS UNIX command.

MAX= lines
MAX is an optional keyword that limits the number of output lines that are produced by the z/OS UNIX command and that are displayed for TSO. The default value is 100. The value can be any numeric value that is in the range 1 - 64 000.

Example 1

Display currently active IPSec filters, limiting the number of output lines to 9.

===> EZACMD ipsec -f display max=9                                        
TSO REXX EZACMD: ipsec command - start - userID=USER1                     
TSO REXX EZACMD: ipsec -f display                                         
                                                                          
CS V2R1 ipsec  Stack Name: TCPCS  Fri Oct  7 14:30:02 2011               
Primary:  Filter          Function: Display            Format:   Detail   
Source:   Stack Policy    Scope:    Current            TotAvail: 730      
Logging:  On              Predecap: Off                DVIPSec:  No       
NatKeepAlive:  0                                                          
Defensive Mode: Inactive                                                  
                                                                          
FilterName:                   DVIPA1~2                                    
FilterNameExtension:          1                                           
TSO REXX EZACMD: Maximum number of output lines (9) has been reached.    
TSO REXX EZACMD: ipsec command - end - RC=4                               
***