Blank lines are treated as comments, but are not allowed within a continued statement. The following example shows all three styles of comments: EXEC SQL SELECT ENAME, SALĬ Assign column values to host variables.ġ INTO :ENAM, :ESAL - output host variables ) in SQL statements at the end of a line, and you can place C-style comments (/*. You can also place ANSI SQL-style comments (. FORTRAN comment lines start with the letter C or an asterisk (*) in column 1. You can place FORTRAN comment lines within SQL statements. No more than one statement can appear on a single line. In this manual, the program fragments and sample programs are in ANSI format (FORMAT=ANSI). On some systems, terminal format is supported that is, entry is not restricted to certain columns. Columns 2 through 5 can contain an optional statement label.Column 1 can indicate a comment line or can be part of an optional statement label.The other columns are used for the following purposes:
You must code EXEC SQL and EXEC ORACLE statements in columns 7 through 72 (columns 73 through 80 are ignored). Check your FORTRAN compiler user's guide. If your compiler is case-sensitive, you must declare and reference variables in the same uppercase/lowercase format. The Pro*FORTRAN Precompiler is not case-sensitive however, some compilers are. Though the standard FORTRAN character set excludes lowercase alpha characters, many compilers allow them in identifiers, comments, and quoted literals. Topics are arranged alphabetically for quick reference. This section deals with embedded SQL syntax, coding conventions, and FORTRAN-specific features and restrictions.