#pragma filetag

Category

Language element control

Purpose

Specifies the code set in which the source code was entered.

Syntax


1  # pragma filetag ( " code_set_name " )

Defaults

See the z/OS XL C/C++ User's Guide for information about default code pages.

Parameters

code_set_name
The name of the source code set.

Usage

Since the # character is variant between code sets, use the trigraph representation ??= instead of # as illustrated below.

The #pragma filetag directive can appear only once per source file. It must appear before the first statement or directive, except for conditional compilation directives or the #line directive. For example:
??=line 42
??=ifdef COMPILER_VER         /* This is allowed. */
??=pragma filetag ("code set name")
??=endif
The #pragma filetag directive should not appear in combination with any other #pragma directives. For example, the following is incorrect:
  ??=pragma filetag ("IBM-1047") export (baffle_1)

If there are comments before the pragma, the compiler does not translate them to the code page that is associated with the LOCALE option.

Related information