skip to main content

Special Features : New syntax

New syntax
The COBOL syntax supported by isCOBOL contains some interesting extensions introduced by the ANSI 2002 standard. With isCOBOL, programmers can take advantage of:
77 my-var PIC X ANY LENGTH.
01 my-table OCCURS DYNAMIC CAPACITY num-items.
  03 my-item1 PIC X(10).
  03 my-item2 PIC 9(5).
INSPECT my-var TALLYING var-length FOR CHARACTERS BEFORE INITIAL TRAILING SPACE.
SET the-result TO my-object:>my-method ( parameter-1, parameter-2 )
ASSERT (var1 = 1 or var2 = 2
     otherwise "Exception message to raise, " VAR1, VAR2.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left