Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Programming Guide

Using the %OPTION statement

With the %OPTION statement, you can change the setting of selected compiler options. The change remains in effect until the next %POP; statement is read.

Currently, you may use the %OPTION statement only to switch the LANGLVL option from SAA2 to SAA (or vice versa). So its syntax is:

Read syntax diagramSkip visual syntax diagram>>-%OPTION--LANGLVL--(--+-SAA--+--)----------------------------><
                        '-SAA2-'
 

For example, if you had some code that was using a LANGLVL(SAA2) feature in a compilation for which you have specified the LANGLVL(SAA) option, you could enclose make the compiler accept that code by taking the following steps:

  1. insert a %PUSH; statement
  2. insert a %OPTION LANGLVL(SAA2) statement
  3. insert the code using LANGLVL(SAA2) features
  4. insert a %POP; statement;

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)