02.05.2013 Views

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

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.

Functions and CALL Routines under z/<strong>OS</strong> TRANSLATE Function 275<br />

data _null_;<br />

rc=system(’alloc f(study)da(’’userid.my.library’’)’);<br />

run;<br />

See Also<br />

TRANSLATE Function<br />

3 Statements: “TSO Statement” on page 403 and “X Statement” on page 405<br />

3 CALL routines: “CALL SYSTEM Routine” on page 248 and “CALL TSO Routine”<br />

on page 249<br />

3 Commands: “TSO Command” on page 565 and “X Command” on page 567<br />

3 “Macro Statements” on page 289<br />

Replaces specific characters in a character expression<br />

Category: Character<br />

z/<strong>OS</strong> specifics: to/from pairs<br />

See: TRANSLATE Function in <strong>SAS</strong> Language Reference: Dictionary<br />

Syntax<br />

TRANSLATE(source, to-1, from-1, )<br />

Arguments<br />

source<br />

specifies the <strong>SAS</strong> expression that contains the original character value.<br />

to<br />

specifies the characters that you want TRANSLATE to use as substitutes.<br />

from<br />

specifies the characters that you want TRANSLATE to replace.<br />

Details<br />

Under z/<strong>OS</strong>, you must specify pairs of to and from arguments. Also, there is no<br />

practical limit to the number of to/from pairs you can specifiy.<br />

TRANSLATE handles character replacement <strong>for</strong> single-byte character sets only. See<br />

KTRANLSATE to replace single-byte characters with double-byte characters, or vice<br />

versa.<br />

See Also<br />

3 “KTRANSLATE Function” on page 268

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

Saved successfully!

Ooh no, something went wrong!