28.11.2012 Views

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

PIPE EDIT<br />

114 <strong>Programming</strong>: <strong>Pipes</strong><br />

JOBNAME (conversion order)<br />

Specifies that the input contains a 2-byte binary ASID value. The<br />

corresponding job name is returned. If an error occurs, one of the four error<br />

tokens (>,*,?, or !) in Table 8 on page 109 might be returned.<br />

LEFT (conversion order)<br />

Specifies that the input data is to be truncated or padded to the length<br />

specified by number. Characters are counted from the beginning, or left, of the<br />

input. If padding is required, the character specified on the most recent PAD<br />

global order is used.<br />

ODDBYTES (conversion order)<br />

Specifies that the input text be alternately kept and discarded. The <strong>for</strong>mat of<br />

ODDBYTES is ODDBYTES keep.discard.<br />

keep is an unsigned, positive number specifying the number of characters to<br />

keep.<br />

discard is an unsigned, positive number specifying the number of characters to<br />

discard.<br />

For example, if the input is 13:15:45 and ODDBYTES 2.1 is specified, 131545 is<br />

returned. That is, two characters were kept and one was discarded. Then,<br />

another two characters were kept, and one was discarded. And so on.<br />

OPDT (conversion order)<br />

Specifies that input text is to be treated as a store clock (STCK) value. OPDT<br />

converts the input into a 17-character string representing the date and time in<br />

readable <strong>for</strong>m. The converted <strong>for</strong>m is the one specified by DEFAULTS or<br />

OVERRIDE date and time <strong>for</strong>mats <strong>for</strong> the system and operator where the<br />

conversion is done.<br />

For example, X'ACE5652DC5690201' is converted to 96/05/20 18:25:19.<br />

A typical use is to take the input provided by the IFRAUGMT msgattr input<br />

order and convert it to readable <strong>for</strong>m.<br />

Note: The data representing a store clock is 8 characters in length. If the input<br />

data provided OPDT is not 8 characters, results are unpredictable.<br />

P2C (conversion order)<br />

Specifies that the input data is a character string representing a signed or<br />

unsigned floating point number. The input is converted to an internal packed<br />

decimal representation with scale decimal digits precision.<br />

v If scale is 0, the integer portion of the number is converted to packed<br />

decimal. For example, C2P 0 converts the input 123.456 to X'123C' which is<br />

the packed decimal number representing 123.<br />

v If scale is positive, the resulting number has scale number digits included in<br />

the packed decimal. For example, C2P 2 converts the input 123.456 to<br />

X'12345C' which is the packed decimal representing 12345.<br />

v If scale is negative, the resulting number has scale number of digits removed<br />

from the integer portion of the packed decimal. The decimal portion is<br />

ignored. For example, C2P -1 converts the input 123.456 to X'012C' which is<br />

the packed decimal number representing 12.<br />

C2P is the inverse of P2C.<br />

PREFIX (conversion order)<br />

Adds a constant to the beginning of a string.

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

Saved successfully!

Ooh no, something went wrong!