
Data Stack Example 2
/******************************** REXX *****************************/
/* This exec runs another exec implicitly and then sends a message */
/* when the called exec finishes. It receives as an argument the */
/* name of a PDS member to run. It activates the system procedure */
/* file SYSEXEC, allocates the data set to SYSEXEC, pushes some
*/
/* commands on the data stack and then implicitly executes the exec*/
/*******************************************************************/
ARG dsn
"EXECUTIL SEARCHDD(yes)"
/* Establish the system library SYSEXEC*/
PUSH "SEND 'Sequence over' USER(*)" /* Put a message on the stack*/
PUSH "TIME"
/* Push the time command
*/
PUSH "FREE F(SYSEXEC)"
/* Push command to free SYSEXEC*/
PARSE VAR dsn name '(' member /* Separate the data set name from */
/* the member name. */
"ALLOC DA("name") F(SYSEXEC) SHR REUSE"
execname = STRIP(member,t,')') /* Remove the last parentheses from*/
/* the member name.
*/
PUSH '%'execname
/* Put the member name on the stack*/
/*******************************************************************/
/* The output from this exec depends on the exec that it runs.
*/
/* Output can be as follows:
*/
/*
*/
/*TIME-01:23:56 PM.CPU-00:00:23 SERVICE-297798 SESSION-04:15:20 MAY*/
/*12,1989
*/
/* Sequence over USERID
*/
/* READY
*/
/*******************************************************************/
Protecting Elements in the Data Stack
Chapter 11. Storing Information in the Data Stack
151
Summary of Contents for TSO/E REXX
Page 1: ...z OS TSO E REXX User s Guide SA22 7791 00 ...
Page 2: ......
Page 3: ...z OS TSO E REXX User s Guide SA22 7791 00 ...
Page 10: ...viii z OS V1R1 0 TSO E REXX User s Guide ...
Page 12: ...x z OS V1R1 0 TSO E REXX User s Guide ...
Page 14: ...xii z OS V1R1 0 TSO E REXX User s Guide ...
Page 18: ...xvi z OS V1R1 0 TSO E REXX User s Guide ...
Page 20: ...2 z OS V1R1 0 TSO E REXX User s Guide ...
Page 58: ...Tracing Expressions with the TRACE Instruction 40 z OS V1R1 0 TSO E REXX User s Guide ...
Page 78: ...60 z OS V1R1 0 TSO E REXX User s Guide ...
Page 86: ...Built In Functions 68 z OS V1R1 0 TSO E REXX User s Guide ...
Page 128: ...Issuing Other Types of Commands from an Exec 110 z OS V1R1 0 TSO E REXX User s Guide ...
Page 136: ...Debugging Execs 118 z OS V1R1 0 TSO E REXX User s Guide ...
Page 170: ...Protecting Elements in the Data Stack 152 z OS V1R1 0 TSO E REXX User s Guide ...
Page 201: ...Part 3 Appendixes Copyright IBM Corp 1988 2001 183 ...
Page 202: ...184 z OS V1R1 0 TSO E REXX User s Guide ...
Page 222: ...Using Variables 204 z OS V1R1 0 TSO E REXX User s Guide ...
Page 226: ...208 z OS V1R1 0 TSO E REXX User s Guide ...
Page 238: ...220 z OS V1R1 0 TSO E REXX User s Guide ...
Page 241: ......