If you want to display a panel where column alignment is important for the presentation, but you are using preparse to substitute data into each line, you could find the columns are not aligned properly in the final display. This occurs because the substituted data varies in length from line to line.
To correct this, use the static preparse option. This lets you specify on the #OPT statement that the location of preparse and field characters is to be preserved, despite differing data substitution lengths. Here, data is truncated to fit if the substituted data exceeds the space available to the left of the next preparse or field character.
Example: PREPARSE Option
If a panel uses $ as its preparse character and contains the following line:
$VAR1 $VAR2
An NCL procedure sets the variable as follows:
&VAR1 = &STR !ABCDEFGHIJKLMNOPQRSTUVWXYZ &VAR2 = &STR !12345
Dynamic preparse displays:
ABCDEFGHIJKLMNOPQRSTUVWXYZ 12345
Static preparse displays:
ABCDE 12345
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |