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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Exit Values<br />

Related Information<br />

iconv, ls<br />

txtflag indicates whether this field is turned ON, OFF, binary or untagged.<br />

Character Code Set / CCSID indicates whether the stored codeset is valid, invalid,<br />

or does not exist. Candidate for Automatic Conversion indicates whether this file<br />

is a candidate for automatic conversion.<br />

Table 4. Possible txtflag / CCSID Combinations<br />

txtflag Character Code Set / CCSID Candidate for Automatic<br />

Conversion<br />

t (on) Defined Yes (text file)<br />

t (on) Defined No<br />

b (off) –– No<br />

m (off) Defined No (mixed data)<br />

–– (off) –– No<br />

0 Successful completion<br />

1 chtag failed to change the tag of a specified file for the following reasons:<br />

v Calling process does not have appropriate privileges to change file<br />

attributes<br />

v Invalid txtflag / Character Code Set combination was issued<br />

2 Incorrect command line syntax<br />

cksum — Calculate and write checksums and byte counts<br />

Format<br />

Description<br />

Options<br />

cksum [–ciprtT] [file ...]<br />

cksum calculates and displays a checksum for each input file. (A checksum is an<br />

error-checking technique used by many programs as a quick way to compare files<br />

that have been moved from one location to another to ensure that no data has<br />

been lost.) It also displays the number of 8-bit bytes in each file.<br />

If you do not specify any files on the command line, or if you specify – as the<br />

filename, cksum reads the standard input (stdin).<br />

The output has the form:<br />

checksum bytecount filename<br />

cksum can calculate checksums in a variety of ways. The default is compatible with<br />

the P<strong>OS</strong>IX.2 standard. You can specify other algorithms with the following options.<br />

The P<strong>OS</strong>IX standard does not recognize these algorithms; they are provided for<br />

compatibility with the <strong>UNIX</strong> sum command.<br />

–c Uses a standard 16-bit cyclic redundancy check (CRC-16).<br />

chtag<br />

Chapter 2. Shell command descriptions 135

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

Saved successfully!

Ooh no, something went wrong!