!

From CometWiki

(Difference between revisions)
Jump to: navigation, search
Line 7: Line 7:
'''History:'''  Starting with Release 01.02, the comment character may appear anywhere on the line. Previously, the comment character was only recognized in the first position on the line.   
'''History:'''  Starting with Release 01.02, the comment character may appear anywhere on the line. Previously, the comment character was only recognized in the first position on the line.   
-
'''Example:'''  100  ! This report prints customer numbers and names
+
'''Example:'''   
 +
100  ! This report prints customer numbers and names
  200  !
  200  !
  300  INPUT CUSTOMER    ! get data from customer file
  300  INPUT CUSTOMER    ! get data from customer file
Line 16: Line 17:
  800  !
  800  !
  900  PRINT CUST.NUMBER;CUST.NAME
  900  PRINT CUST.NUMBER;CUST.NAME
-
1000  END
+
1000  END

Revision as of 11:46, 5 June 2009

!

Syntax:  ! comment text

Discussion: The exclamation mark (!) is the comment character. It may appear anywhere in a report specification. When the report is prepared, any text following the comment character is ignored.

History: Starting with Release 01.02, the comment character may appear anywhere on the line. Previously, the comment character was only recognized in the first position on the line.

Example:

100   ! This report prints customer numbers and names
200   !
300   INPUT CUSTOMER     ! get data from customer file
400   REPORT             ! prepare the report now
500   ! 
600   ! The following command prints the customer number
700   ! and customer name
800   !
900   PRINT CUST.NUMBER;CUST.NAME
1000   END