Defining new tags
In addition to the pre-defined tags listed in Queue template tags, you can also define new tags in your template script, and you can specify their values in the GUI.
Tag definitions have the following format:
EXAMPLE_TAG: { key1=value1, key2=value2, ... }
key1 and key2 are tag attribute names. value1 and value2 are the corresponding values.
The tag is replaced with the value specified in the GUI, as shown in this example.
#PBS -option EXAMPLE_TAG
These are the supported attributes:
Attribute |
Purpose |
Examples |
|---|---|---|
|
text - General text input.select - Select from two or more options.check - Boolean.file - File name.number - Real number.integer - Integer number. |
|
|
The label for the user interface widget. |
|
|
Default value for this tag |
|
Attribute |
Purpose |
Examples |
|---|---|---|
|
Input masks
0 ASCII digit permitted but not required.9 ASCII digit required. 0-9.N ASCII alphanumeric character required. A-Z, a-z, 0-9.n ASCII alphanumeric character permitted but not required. |
|
Attribute |
Purpose |
Examples |
|---|---|---|
|
Options to use, separated by the pipe (|) character. |
|
|
Value of a |
|
|
Value of a |
|
|
Minimum value. |
|
|
Maximum value. |
|
|
Amount to step by when the up or down arrows are clicked. |
|
|
Number of decimal places. |
|
|
Display only suffix (not included in tag value). |
|
|
Display only prefix (not included in tag value). |
|
Attribute |
Purpose |
Examples |
|---|---|---|
|
open-file an existing file.save-file a new or existing file.existing-directory an existing directory.open-files one or more existing files, separated by spaces. |
|
|
Window caption for file chooser. |
|
|
Initial directory for file chooser. |
|
|
Restrict the files displayed in the file selector to a certain file pattern. |
|
Examples
# JOB_TYPE_TAG: {type=select,options=parallel| \
serial,label="Job Type",default=parallel}
# WALL_CLOCK_LIMIT_TAG: {type=text,label="Wall Clock Limit", \
default="00:30:00",mask="09:09:09"}
# NODE_USAGE_TAG: {type=select,options=not_shared| \
shared,label="Node Usage",default=not_shared}
# ACCOUNT_TAG: {type=text,label="Account",global}
See the template files in <installation-directory>/templates for more examples.
Specifying tag values
To specify values for these tags, click the Edit Template Variables button on the Job Submission Options page (see Integration with queuing systems) or the Run window.
A window displays which is similar to this:
The values you specify are substituted for the corresponding tags in the template file when you run a job.