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.

Appendix L. Automatic Codeset Conversion: Default Status<br />

for Specific <strong>Command</strong>s<br />

Most commands that perform file I/O allow automatic codeset conversion of files<br />

tagged as text with a codeset. For example, a file with ISO8859-1 (ASCII) content<br />

that is tagged with TXT, ISO8859-1, may be converted to IBM-1047 (EBCDIC) for<br />

processing by <strong>UNIX</strong> shells and utilities. Automatic conversion is controlled by<br />

configuration parameters and environment variables. For more information about<br />

automatic conversion, see z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> Planning.<br />

Table 44 lists commands which allows automatic codeset conversion by default, but<br />

use the –B option to disable it:<br />

Table 44. <strong>Command</strong>s that Allow Automatic Conversion by Default<br />

cmp<br />

file<br />

head<br />

tail<br />

strings<br />

pack<br />

Table 45 lists commands that expect binary data, so they prevent automatic<br />

conversion:<br />

Table 45. <strong>Command</strong>s that Disallow Automatic Conversion by Default<br />

<strong>Command</strong> Special Behavior<br />

cksum Will allow automatic conversion with –T.<br />

compress v Allow conversion on the file being read.<br />

v Disable conversion on the compressed<br />

file and allow the automatic tagging of<br />

the file as binary.<br />

Note: Because file tag information can’t be<br />

preserved in the compressed file, you can<br />

lose data if translation does not occur on<br />

input. If you really do want translation to<br />

occur, change the file tag, or disable<br />

automatic conversion with the<br />

_BPXK_AUTOCVT environment variable.<br />

dd v Prevents automatic conversion.<br />

v If you specify conv=ascii, conv=ebcdic,<br />

or conv=ibm, and the input is tagged as<br />

text, dd will issue a warning message if<br />

the file tag does not match the expected<br />

output.<br />

gencat Prevents automatic conversion.<br />

mkcatdefs Prevents automatic conversion.<br />

od Will allow automatic conversion with –T.<br />

© Copyright IBM Corp. 1996, 2007 937

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

Saved successfully!

Ooh no, something went wrong!