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

Create successful ePaper yourself

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

* 1, 2, or 3 */<br />

/* create and initialize a 3-element array */<br />

input action;<br />

array programs{3} $ 11 c1-c3<br />

("exec clist1" "exec clist2" "exec clist3");<br />

call system(programs{action});<br />

run;<br />

Functions and CALL Routines under z/<strong>OS</strong> CALL TSO Routine 249<br />

In this example, the array elements are initialized with character strings that consist<br />

of TSO commands <strong>for</strong> executing the three CLISTs. In the CALL SYSTEM statement,<br />

an expression is used to pass one of these character strings to the CALL SYSTEM<br />

routine. For example, if ACTION equals 2, then PROGRAMS{2}, which contains the<br />

EXEC CLIST2 command, is passed to the CALL SYSTEM routine.<br />

Under z/<strong>OS</strong>, CALL TSO is an alias <strong>for</strong> the CALL SYSTEM routine.<br />

See Also<br />

CALL TSO Routine<br />

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

3 Functions: “SYSTEM Function” on page 274 and “TSO Function” on page 276<br />

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

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

Issues a TSO command or invokes a CLIST or a REXX exec during a <strong>SAS</strong> session<br />

Category: Special<br />

z/<strong>OS</strong> specifics: all<br />

Syntax<br />

CALL TSO(command);<br />

Details<br />

The TSO and SYSTEM CALL routines are identical, with one exception: under an<br />

operating environment other than z/<strong>OS</strong>, the TSO CALL routine has no effect, whereas<br />

the SYSTEM CALL routine is always processed. See “CALL SYSTEM Routine” on page<br />

248 <strong>for</strong> more in<strong>for</strong>mation.

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

Saved successfully!

Ooh no, something went wrong!