Keywords may have no parameters, optional parameters, or required parameters. The syntax for keywords is as follows:
Keyword(parameter1 : parameter2)
| Notation | Example of Notation Used | Description | Example of Source Entered |
|---|---|---|---|
| braces {} | PRTCTL (data_struct {:*COMPAT}) | Parameter data_struct is required and parameter *COMPAT is optional. | PRTCTL (data_struct1) |
| braces {} | TIME(format {separator}) | Parameter format{separator} is required, but the {separator} part of the parameter is optional. | TIME(*HMS&) |
| colon (:) | RENAME(Ext_format :Int_format) | Parameters Ext_format and Int_format are required. | RENAME (nameE: nameI) |
| ellipsis (…) | IGNORE(recformat {:recformat…}) | Parameter recformat is required and can be specified more than once. | IGNORE (recformat1: recformat2: recformat3) |
| vertical bar (|) | FLTDIV{(*NO | *YES)} | Specify *NO or *YES or no parameters. | FLTDIV |
| blank | OPTIONS(*OMIT *NOPASS *VARSIZE *STRING *TRIM *RIGHTADJ) | One of *OMIT, *NOPASS, *VARSIZE, *STRING, *TRIM, or *RIGHTADJ is required and more than one parameter can be optionally specified. | OPTIONS(*OMIT : *NOPASS : *VARSIZE : *TRIM : *RIGHTADJ) |