Previous Topic: Model Data StatementsNext Topic: Positional Reset In a Data Statement


Examples

Example 1

Assume the value of the system keyword $LIBC is SRCE, and the value of the system keyword $LIBSUBC is C:

MODEL:   LIBRARY CODE IS <$LIBC>    ! 
MODEL:                       /<$LIBSUBC> 

OUTPUT:  LIBRARY CODE IS SRCE/C

Note that even though the second model statement seems to overlap the first model statement, on the output there is no actual overlaying of data because the value of $LIBC is only four characters long.

Example 2

Characters from subsequent Data Statements must not overlay characters from previous Data Statements or a model error occurs:

Model: THIS IS AN ERROR     !
Model:         NO

OUTPUT: No output, model error