The following example shows the representation of the syntax of a command in a manual. The command format consists of a field with the command name. All operands with their legal values are then listed. Operand values which introduce structures and the operands dependent on these operands are listed separately.
HELP-SDF | Alias: HPSDF | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This syntax description is valid for SDF V4.8. The syntax of the SDF command/statement language is explained in the following three tables.
"Metasyntax" table
The meanings of the special characters and the notation used to describe command and statement formats are explained in table "Data types".
"Data types" table
Variable operand values are represented in SDF by data types. Each data type represents a specific set of values. The number of data types is limited to those described in the table.
The description of the data types is valid for the entire set of commands/statements. Therefore, only deviations (if any) from the attributes described in the table are explained in the relevant operand descriptions.
"Suffixes for data types" table
Data type suffixes define additional rules for data type input. They contain a length or interval specification and can be used to limit the set of values (suffix begins with without), extend it (suffix begins with with), or declare a particular task mandatory (suffix begins with mandatory). The following short forms are used in this manual for data type suffixes:
case-sensitive | case-sens |
The description of the ‘integer’ data type in table "Suffixes for data types" contains a number of items in italics which are not part of the syntax. They are only used to make the table easier to read. For special data types that are checked by the implementation, the table "Suffixes for data types" contains suffixes printed in italics (see the special suffix) which are not part of the syntax.
The description of the data type suffixes is valid for the entire set of commands/statements. Therefore, only deviations (if any) from the attributes described this table are explained in the relevant operand descriptions table "Suffixes for data types".
Metasyntax
Convention | Meaning | Examples | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
UPPERCASE | Uppercase letters denote keywords (command, statement or operand names, keyword values) and constant operand values. Keyword values begin with *. | HELP-SDF SCREEN-STEPS = *NO | |||||||||||||||||||||||||||||||||||
UPPERCASE | Uppercase letters printed in boldface denote guaranteed or suggested abbreviations of keywords. | GUIDANCE-MODE = *YES | |||||||||||||||||||||||||||||||||||
= | The equals sign connects an operand name with the associated operand values. | GUIDANCE-MODE = *NO | |||||||||||||||||||||||||||||||||||
< > | Angle brackets denote variables whose range of values is described by data types and suffixes (see "Data types" and "Suffixes for data types"). | SYNTAX-FILE = <filename 1..54> | |||||||||||||||||||||||||||||||||||
Underscoring | Underscoring denotes the default value of an operand. | GUIDANCE-MODE = *NO | |||||||||||||||||||||||||||||||||||
/ | A slash serves to separate alternative operand values. | NEXT-FIELD = *NO / *YES | |||||||||||||||||||||||||||||||||||
(...) | Parentheses denote operand values that initiate a structure. | ,UNGUIDED-DIALOG = *YES (...) / *NO | |||||||||||||||||||||||||||||||||||
[ ] | Square brackets denote operand values which introduce a structure and are optional. The subsequent structure can be specified without the initiating operand value. | SELECT = [*BY-ATTRIBUTES](...) | |||||||||||||||||||||||||||||||||||
Indentation | Indentation indicates that the operand is dependent on a higher-ranking operand. |
| |||||||||||||||||||||||||||||||||||
| | | | A vertical bar identifies related operands within a structure. Its length marks the beginning and end of a structure. A structure may contain further structures. |
| |||||||||||||||||||||||||||||||||||
, | A comma precedes further operands at the same structure level. | GUIDANCE-MODE = *NO / *YES ,SDF-COMMANDS = *NO / *YES | |||||||||||||||||||||||||||||||||||
list-poss(n): | The entry “list-poss” signifies that a list of operand values can be given at this point. If (n) is present, it means that the list must not have more than n elements. | list-poss: *SAM / *ISAM | |||||||||||||||||||||||||||||||||||
Alias: | The name that follows represents a guaranteed alias (abbreviation) for the command or statement name. | HELP-SDF Alias: HPSDF |
Data types
Data type | Character set | Special rules | ||||||
---|---|---|---|---|---|---|---|---|
alphanum-name | A..Z | |||||||
cat-id | A..Z | Not more than 4 characters; must not begin with the string PUB | ||||||
command-rest | freely selectable | |||||||
composed-name | A..Z | Alphanumeric string that can be split into multiple substrings by means of a period or hyphen. | ||||||
c-string | EBCDIC character | Must be enclosed within single quotes; the letter C may be prefixed; any single quotes occurring within the string must be entered twice. | ||||||
date | 0...9 | Input format: yyyy-mm-dd
| ||||||
device | A...Z | Character string, max. 8 characters in length, corresponding to a device type available in the system. In guided dialog, SDF displays the valid operand values. For notes on possible device types, see the relevant operand description. | ||||||
fixed | +, - | Input format: [sign][digits].[digits]
must contain at least one digit, but may contain up to 10 characters (0..9, period) apart from the sign. | ||||||
filename | A...Z | Input format: [:cat:][$user.]{ file/ file(nr) / group / group{ (*abs) / (+rel) / (-rel) } } | ||||||
:cat: optional entry of the catalog identifier; | ||||||||
$user. optional entry of the user ID; | ||||||||
$. system default ID | ||||||||
file file or job variable name; | ||||||||
#file (special case) # or @ used as the first character indicates temporary files or job variables, depending on system parameter TEMPFILE. | ||||||||
file(no) tape file name | ||||||||
group name of a file generation group | ||||||||
group { (*abs) / (+rel) / (-rel) } | ||||||||
(*abs) absolute generation number (1-9999); | ||||||||
(+rel) relative generation number (0-99); | ||||||||
integer | 0..9, +, - | + or -, if specified, must be the first character. | ||||||
name | A..Z | Must not begin with 0..9. | ||||||
partial-filename | A..Z | Input format: [:cat:][$user.][partname.]
partname optional entry of the initial part of a name common to a number of files or file generation groups in the form: | ||||||
posix-filename | A..Z | String with a length of up to 255 characters; | ||||||
posix-pathname | A...Z | Input format: [/]part1/.../partn | ||||||
product-version | A..Z | Input format: [[C]'][V][m]m.naso['] where m, n, s and o are all digits and a is a letter. Whether the release and/or correction status may/must be specified depends on the suffixes to the data type (see suffixes without-corr, without-man, mandatory-man and mandatory-corr in table "Suffixes for data types"). | ||||||
structured-name | A..Z | Alphanumeric string which may comprise a number of substrings separated by a hyphen. | ||||||
text | freely selectable | For the input format, see the relevant operand descriptions. | ||||||
time | 0..9 | Time-of-day entry: Input format: { hh:mm:ss / hh:mm / hh } hh: hours Leading zeros may be omitted. | ||||||
vsn |
|
| ||||||
|
| |||||||
x-string | Hexadecimal: | Must be enclosed in single quotes; | ||||||
x-text | Hexadecimal: | Must not be enclosed in single quotes; the letter X must not be prefixed. There may be an odd number of characters. |
Suffixes for data types
Suffix | Meaning | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
x..y unit | With data type “integer”: interval specification
| ||||||||||||||||||||||||||||||
x..y special | With the other data types: length specification For data types date, device, product-version and time the length specification is not displayed.
| ||||||||||||||||||||||||||||||
with | Extends the specification options for a data type. | ||||||||||||||||||||||||||||||
-compl | When specifying the data type “date”, SDF expands two-digit year specifications in the form yy-mm-dd to: 20jj-mm-dd if yy<60 | ||||||||||||||||||||||||||||||
-low | Uppercase and lowercase letters are differentiated. | ||||||||||||||||||||||||||||||
-path-compl | For specifications for the data type “filename”, SDF adds the catalog and/or user ID if these have not been specified. | ||||||||||||||||||||||||||||||
-under | Permits underscores (_) for the data type “name”. | ||||||||||||||||||||||||||||||
-wild(n) | Parts of names may be replaced by the following wildcards.
Wildcards are not permitted in generation and version specifications for file names. Only system administration may use wildcards in user IDs. Wildcards cannot be used to replace the delimiters in name components cat (colon) and user ($ and period).
| ||||||||||||||||||||||||||||||
with-wild-constr(n) | Specification of a constructor (string) that defines how new names are to be constructed from a previously specified selector (i.e. a selection string with wildcards). See also with-wild. n denotes the maximum input length when using wildcards. The constructor may consist of constant strings and patterns. A pattern (character) is replaced by the string that was selected by the corresponding pattern in the selector. The following wildcards may be used in constructors:
Allocation of wildcards to corresponding wildcards in the selector:
The following rules must be observed when specifying a constructor:
Examples:
| ||||||||||||||||||||||||||||||
without | Restricts the specification options for a data type. | ||||||||||||||||||||||||||||||
-cat | Specification of a catalog ID is not permitted. | ||||||||||||||||||||||||||||||
-corr | Input format: | ||||||||||||||||||||||||||||||
-dig | The file type name does not permit digits. | ||||||||||||||||||||||||||||||
-gen | Specification of a file generation or file generation group is not permitted. | ||||||||||||||||||||||||||||||
-man | Input format: | ||||||||||||||||||||||||||||||
-odd | The data type x-text permits only an even number of characters. | ||||||||||||||||||||||||||||||
-sep | With the data type “text”, specification of the following separators is not permitted: ; = ( ) < > 'BLANK' (i.e. semicolon, equals sign, left and right parentheses, greater than, less than, and blank). | ||||||||||||||||||||||||||||||
-spec | The file type name does not permit any special characters. | ||||||||||||||||||||||||||||||
-tempfile | Specification of a temporary file is not permitted (see #file or @file under filename). | ||||||||||||||||||||||||||||||
-user | Specification of a user ID is not permitted. | ||||||||||||||||||||||||||||||
-vers | Specification of the version (see “file(no)”) is not permitted for tape files. | ||||||||||||||||||||||||||||||
-wild | The file types posix-filename and posix-pathname must not contain a pattern (character). | ||||||||||||||||||||||||||||||
mandatory | Certain specifications are necessary for a data type. | ||||||||||||||||||||||||||||||
-corr | Input format: | ||||||||||||||||||||||||||||||
-man | Input format: | ||||||||||||||||||||||||||||||
-quotes | Specifications for the data types posix-filename and posix-pathname must be enclosed in single quotes. | ||||||||||||||||||||||||||||||
case-sensitive | When specifications are made for the data types command-rest and text, a distinction is made between uppercase and lowercase. This also applies for specifications which are not enclosed in single quotes. |