gtpc2m75C/C++ Language Support User's Guide

systc-Test System Generation Options

This function is used for the dynamic determination of system generation options at execution time, thereby allowing the code to become object-shippable.

Format

#include   <c$systc.h>
int        systc(int option, enum t_systc_ss subsystem);

option
A valid system-defined generation option defined within the c$systc.h header file, or a valid user-defined system generation option defined within the c$sysug.h header file.

subsystem

SYSTC_BSS
test the specified option in the basic subsystem (BSS).

SYSTC_SS
test the specified option in the subsystem that the ECB is running in.

Normal Return

0
The system or subsystem option bit is off.

1
The system or subsystem option bit is on.

Error Return

Not applicable.

Programming Considerations

None.

Examples

The following example checks the shared DASD feature. If this feature has been generated, an ECB is dispatched for program CELH, passing the string ACT as input to the program.

#include <c$systc.h>
char *parmstring = "ACT"

  ·
  ·
  ·
if (systc(SBSDPS,SYSTC_BSS)) cremc(strlen(parmstring),parmstring,CELH);
  ·
  ·
  ·

Related Information

None.