16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

chtag<br />

Examples<br />

Usage notes<br />

Note: Codesets which are aliases of each other exist which may cause the<br />

test to fail, since the file inquiry operator may return an alias of the<br />

codeset you are testing.<br />

–q Suppresses warning messages.<br />

–r Removes any tagging information associated with the file and sets the<br />

status of the file to ″untagged″. This option disables automatic conversion<br />

for the files. –r is mutually exclusive with the –b, –c, –m, and –t options.<br />

–R Recursively changes the file tag information. For each pathname operand<br />

that names a directory, chtag changes the file tag information on all of the<br />

files in the file hierarchy below it. When –h is not specified, and symbolic<br />

links (or external links) are specified or encountered during the file hierarchy<br />

traversal, the links are followed, and the resolved file (or files in the<br />

directory) are changed.<br />

–t Indicates that the specified file contains pure (uniformly encoded) text data.<br />

Used alone, this option sets txtflag = ON and retains the existing character<br />

codeset associated with the file. To set or change the codeset, use the –c<br />

option. Files that are tagged with this option and contain a valid codeset are<br />

candidates for automatic conversion. –t is mutually exclusive with the –b,<br />

–m, and –r options.<br />

–v Gives verbose output. Displays what state the file tag is currently in, and<br />

what state the user is trying to change it to. This option is only useful for the<br />

–t, –b, –m, –r and –c options. Output will be displayed in the following<br />

format:<br />

txtflag Char Set Char Set ---> txtflag Char Set Char Set Filename<br />

Name Type Name Type<br />

If the character set name is unknown, the CCSID will be used. Sample output will<br />

look like the following:<br />

chtag -mvc IBM-1047 file3.c<br />

t ISO-8859 A ---> m IBM-1047 E file3.c<br />

Where:<br />

A = ASCII<br />

E = EBCDIC<br />

? = unknown<br />

1. To specify a text file with IBM-1047 codeset, issue:<br />

chtag -tc IBM-1047 filename<br />

2. To specify a binary file, issue:<br />

chtag -b filename<br />

3. To specify a file of mixed binary and text data, with a new codeset of<br />

ISO8859-1, issue:<br />

chtag -mc ISO8859-1 filename<br />

4. To remove the tag from a file issue:<br />

chtag -r filename<br />

Table 4 on page 135 illustrates how the different combinations of txtflag and<br />

Character Code Set / CCSID affect a file’s candidacy for automatic conversion.<br />

134 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!