Chapter Contents

Previous

Next
The SAS/C CICS Command Translator

Specifying Translator Options

You can specify options to modify the way the translator handles your program, just as you can specify compile-time and linkage options. Specify translator options as you would regular compiler options, except there are no short-form options. For example, this means you cannot code -p for PAGESIZE.


Using the #pragma options Statement

A subset of translator options may be used in a special options statement embedded in the source file. The options, described in the next section, are specified by using the #pragma options statement. For example, you can code the following preprocessing directive:

#pragma options xopts(dli,cics)

The #pragma options statement may appear anywhere a #pragma statement can appear. The set of current option settings may be saved and restored by using the #pragma options push xopt and #pragma options pop xopts statements, as in the following example:

/* Save the current setting of    */
/* the PROTO option.              */
#pragma options push xopts

/* Suppress prototype generation  */
/* for this command.              */
#pragma options xopts(noproto)

EXEC CICS ... ;

/* Restore the previous setting   */
/* of the PROTO option.           */
#pragma options pop xopts

Preprocessing, Compiling, and Linking provides additional information on specifying options for the translator.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.