Meanings of syntax errors

This section explains the meanings of syntax errors in service help and provides the methods of correcting them. Line numbers in error descriptions begin from the start of the statement block. See Appendix F, Service help specification for more information about the statement block.

Unexpected Command

Missing > and ] characters cause this error.

In Figure E.1, “A missing ']'” error description displays syntax error, unexpected COMMAND at line:5 column: 3. At line 5 and column 3 is a PUT command. This implies, that a command starts before the previous statement ends. A missing ] character indicates that the statement continues on the next line. But the next line starts with the PUT command. Therefore, if the error description starts with unexpected COMMAND, then look for a missing or unbalanced character before the specified line number.

Figure E.1. A missing ']'


Unexpected character

Missing < and [ characters are the cause of this error.

In Figure E.2, “A missing '['” error description displays syntax error, unexpected ']', expecting end of service help or COMMAND at line: 3 column: 36. That implies, an extra ] character appears in the statement. An extra character in a statement indicates either that an extra or a right-paired (in this case it is [) character is missing from the statement. Therefore, if the error description starts with unexpected ']' (or '>'), then either remove that character or find a position for a right-paired character.

Figure E.2. A missing '['