SQL/MP Programming Manual for C
About This Manual
HP NonStop SQL/MP Programming Manual for C—429847-008
xxi
General Syntax Notation
Computer type. Computer type letters within text indicate C and Open System Services
(OSS) keywords and reserved words; enter these items exactly as shown. For
example:
SYSTYPEþOSS
[ ] Brackets. Brackets enclose optional syntax items. For example:
OUT [ list-file ]
A group of items enclosed in brackets is a list from which you can choose one item or
none. The items in the list can be arranged either vertically, with aligned brackets on
each side of the list, or horizontally, enclosed in a pair of brackets and separated by
vertical lines. For example:
[ , PAGES num-pages ]
[ , SQLMAP ]
[ , WHENEVERLIST ]
[ , RELEASE1 | RELEASE2 ]
{ } Braces. A group of items enclosed in braces is a list from which you are required to
choose one item. The items in the list can be arranged either vertically, with aligned
braces on each side of the list, or horizontally, enclosed in a pair of braces and
separated by vertical lines. For example:
{ PAGE[S] }
{ BYTE[S] }
{ MEGABYTE[S} }
| Vertical Line. A vertical line separates alternatives in a horizontal list that is enclosed in
brackets or braces. For example:
[ RECOMPILEONDEMAND | RECOMPILEALL ]
… Ellipsis. An ellipsis immediately following a single syntax item indicates that you can
repeat that syntax item any number of times. An ellipsis immediately following a pair of
brackets or braces indicates that you can repeat the enclosed sequence of syntax
items any number of times. For example:
[ , run-option ]...
An ellipsis in a programming example indicates that one or more lines of source code
have been omitted.
#include <cextdecs(SQLCAFSCODE)>
...
short fserr;
EXEC SQL INCLUDE SQLCA;
...
fserr = SQLCAFSCODE ((short *) &sqlca);
...
Punctuation. Parentheses, commas, semicolons, and other symbols not previously
described must be entered as shown.