Names (*NAME)

This describes the rules for creating basic names and basic names in quoted form.

*NAME (Basic Name)

Every basic name can begin with the characters A-Z, $, #, or @ and can be followed by up to nine characters. The remaining characters can include the same characters as the first but can also include numbers 0-9, underscores (_), and periods (.). Lowercase letters are changed to uppercase letters by the system. Basic names used in IBM® -supplied commands can be no longer than 10 characters. However, in your own commands, you can define parameters of type *NAME (specified on the TYPE parameter of the PARM or ELEM statements) with up to 256 characters.

Examples of basic names are shown below:

A987@.442#    ONE_NAME    LIB_0690    $LIBX

Names can be entered in quoted or unquoted form. If you use the quoted form, the following rules and considerations also apply:

*NAME (Basic Name in Quoted Form)

Every quoted name must begin and end with a quotation mark ("). The middle characters of a quoted name can contain any character except , *, ?, ', ", hex 00 through 3F, or hex FF, and is delimited by a slash. Quoted names allow you to use graphic characters in the name. The quoted form of basic names used in IBM-supplied commands can be no longer than 8 characters (not including the double quotes). In your own commands, you can define parameters of type *NAME in quoted form with up to 254 characters (not including the double quotes).

Note: Only basic names can be used in quoted form.

Examples of quoted names are shown below:

"A"        "AA%abc"        "ABC%%abc"

When you use quoted names, you should be aware of certain restrictions:

If a name enclosed in quotation marks is a valid unquoted basic name, the quotation marks are removed. Thus, "ABC" is equivalent to ABC. Because the quotation marks are removed, they are not included in the length of the name. "ABCDEFGHIJ" is, therefore, a valid name on IBM* commands even though it is longer than 10 characters.

Related concepts
Communication names (*CNAME)
Simple Names (*SNAME)
Related reference
Command label