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.

convfile<br />

Uses convfile as a translation table if it is not one of the<br />

conversion formats listed here and it is the name of a file of exactly<br />

256 bytes.<br />

ebcdic<br />

You can perform multiple conversions at the same time by<br />

separating arguments to conv with commas; however, some<br />

conversions are mutually exclusive (for example, ucase and lcase).<br />

Notes:<br />

1. When you specify one or more of the character set conversions<br />

(ascii, ebcdic, ibm, or convfile), dd assumes that all<br />

characters are singlebyte characters, regardless of the locale.<br />

Do not use these conversions with doublebyte character sets.<br />

2. When working with DBCS text, dd treats the input and output<br />

files as character strings and handles DBCS characters<br />

correctly (no splitting and retaining of proper shift states). This<br />

happens only if any of the conversion options (block, unblock,<br />

ucase, or lcase) are specified. Otherwise, DBCS strings can be<br />

corrupted with the seek, count, or iseek processing.<br />

Converts ASCII input to EBCDIC for output; it is provided for<br />

compatibility purposes only.<br />

To copy a file and convert between a shell code page and ASCII,<br />

use iconv, not dd.<br />

ibm Like ebcdic, converts ASCII to EBCDIC; it is provided for<br />

compatibility purposes only.<br />

To copy a file and convert between code page 01047 (used in the<br />

z/<strong>OS</strong> shell) and ASCII, use iconv, not dd.<br />

lcase Converts uppercase input to lowercase.<br />

noerror<br />

Ignores errors on input.<br />

notrunc<br />

Does not truncate the output file. dd preserves blocks in the output<br />

file that it does not explicitly write to.<br />

swab Swaps the order of every pair of input bytes. If the current input<br />

record has an odd number of bytes, this conversion does not<br />

attempt to swap the last byte of the record.<br />

sync Specifies that dd is to pad any input block shorter than ibs to that<br />

size with NUL bytes before conversion and output. If you also<br />

specified block or unblock, dd uses spaces instead of null bytes for<br />

padding.<br />

ucase Converts lowercase input to uppercase.<br />

unblock<br />

Converts fixed-length records to variable-length records by reading<br />

a number of bytes equal to the size of the conversion buffer,<br />

deleting all trailing spaces, and appending a newline character. You<br />

must specify cbs=size with this conversion.<br />

count=n<br />

Copies only n input blocks to the output.<br />

dd<br />

Chapter 2. Shell command descriptions 231

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

Saved successfully!

Ooh no, something went wrong!