z/OS substitution variables in the Menu Manager

z/OSĀ® substitution variables depend on the context that is chosen from the Context list on the Substitution Variables window.

The Table 1 table shows the list of defined substitution variables that can be used for constructing a command.

Table 1. z/OS substitution variables
Variable Description
$clientaddress The address of the client that is contacting the remote system
$datasetname The name of the data set that contains the selected resource
$ddname The JES job data set DD name of the selected resource
$dsname The JES job data set DS name of the selected resource
$fullname The fully qualified name of the selected resource in the form DATASETNAME(MEMBERNAME)
$input Input from the user for an interactive action (syntax: $input(prompt_string, default_value, $List{A,B,C})). The List parameter is optional.
$inputfile The name of the selected file. It can be a z/OS UNIX file, an MVS dataset member, a local file, or a workspace file.
$inputfileandfolder The full path name of the selected file or folder. The file or folder can be in z/OS UNIX, MVS, a local system, or a workspace.
$inputfilefullname The name and the full path of the selected file. It can be a z/OS UNIX file, an MVS dataset member, a local file, or a workspace file.
$inputfolder The full path of the selected directory. It can be a z/OS UNIX directory, an MVS dataset, a local folder, or a workspace folder.
$jobid The JES job ID of the selected resource
$jobname The JES job name of the selected resource
$jobowner The JES job owner of the selected resource
$list Used with $input to list the options that are available for interactive actions
$name The name of the selected resource
$procstepname The JES job data set proc step name of the selected resource
$openfileafter Opens the selected file in the default editor after the action.
$projectname The name of the project that is associated with the selected resource
$refreshselectionafter Refreshes the selected view after the action.
$stepname The JES job data set step name of the selected resource
$systemhostname The host name or IP address of the system that contains the selected resource
$userid The ID of the user that is connected to the system associated with the selected resource