Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
6Activity
0 of .
Results for:
No results containing your search query
P. 1
Rexx

Rexx

Ratings: (0)|Views: 717 |Likes:
Published by api-3729284

More info:

Published by: api-3729284 on Oct 18, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

REXX
Revision List
TABLE OF CONTENTS
1. REXX..............................................................................................................1
1.1
INTRODUCTION TO REXX............................................................................ 1
1.1.1
What is REXX ?................................................................................ 1
1.1.2
Brief History Of REXX....................................................................... 1
1.2
GENERAL FORMAT OF REXX STATEMENTS................................................. 4
1.3
CREATE AND EXECUTE A REXX PROGRAM................................................. 6
1.4
OPERATORS..............................................................................................7
1.4.1
Arithmetic Operators......................................................................... 7
1.4.2
Concatenation Operators.................................................................. 7
1.4.3
Operator Precedence....................................................................... 7
1.4.4
Logical Operators............................................................................. 8
1.4.5
Comparison Operators..................................................................... 8
2. FUNCTIONS, COMMANDS AND INSTRUCTIONS..................................... 11
2.1
TERMINALINPUTANDOUTPUT..................................................................11
2.2
CONDITIONAL INSTRUCTIONS..................................................................... 14
2.3
LOOPING INSTRUCTIONS........................................................................... 19
2.4
SUBROUTINES AND FUNCTIONS................................................................. 25
2.5
BUILT-IN FUNCTIONS................................................................................. 33
2.5.1
String Manipulating Functions........................................................ 33
2.5.2
Arithmetic Functions....................................................................... 41
2.5.3
Comparison Functions.................................................................... 43
2.5.4
Conversion functions...................................................................... 45
2.5.5
Formatting Functions...................................................................... 48
2.5.6
Miscellaneous Functions................................................................ 51
2.6
TSO/E EXTERNAL FUNCTIONS.................................................................. 55
2.7
TSO/E REXX COMMANDS....................................................................... 60
2.8
DEBUGGINGE XE C S................................................................................ 6 8
2.8.1
Tracing Commands with the TRACE Instruction............................ 68
2.8.2
Using REXX Special Variables RC and SIGL................................. 69
2.9

COMPOUNDVARIABLESANDST EM........................................................... 71 2.10 SAMPLE REXX PROGRAM........................................................................72 2.11 REXX CODING STANDARDS......................................................................74

3. ISREDIT MACROS.......................................................................................75
3.1
ISPF/PDF MACRO COMMAND DESCRIPTIONS INDEX.................................. 77
3.2
ISPF/PDF EDIT MACRO COMMANDS......................................................... 80
3.3
SAMPLE ISREDIT MACRO...................................................................... 99
4. ISPF SERVICES.........................................................................................100
4.1
ISPF SERVICES INDEX........................................................................... 100
1
1. REXX
1.1 Introduction to REXX
1.1.1 What is REXX ?

TSO/REXX (Restructured EXtended eXecutor) is a powerful interactive programming language that can execute system commands, such as TSO, ISPF etc. It allows you to :

\u2666Request input from the terminal and Display output on the terminal
\u2666Execute TSO commands under program control
\u2666Read and Write files

REXX is more modern, powerful language, and is the procedural language for IBM\u2019s System Application Architecture (SAA), which means REXX is implemented across IBM\u2019s product line.

REXX is a procedural language that allows programs and algorithms to be written in a clear and structured way. It is easy to use by experts and casual users alike. REXX has been designed to make manipulation of the kinds of symbolic objects people normally deal with such as words and numbers. Although REXX has the capability to issue commands to its host environment and to call programs and function written in other languages, REXX is also designed to be independent of its supporting system software when such commands are kept to minimum.

1.1.2 Brief History Of REXX

In the 1970\u2019 s C. J. Stephenson and others at the IBM T. J Watson Research center realized that, if applied consistently, this concept of command programming language was extraordinary powerful: a single language could provide the extension language -or \u201cmacro\u201d language- for wide variety of applications. They took the EXEC language and generalized and improved it for this enhanced role; the new language was called EXEC 2.

EXEC 2 proved the concept of a general macro language. It was used mostly for writing system commands and macros for wide variety of editors. Its interpreter was provably, still is, fewest example of efficient robust system/370 assembler code. However, EXEC2 (like its predecessor and most other macro languages of 1970 \u2018s and even early 1980 s) assumed that macro programs would be mostly commands with relatively little \u201cglue\u201d of logic and variables. Accordingly, it was designed to allows commands ( literal strings, usually upper case) to be written plainly, where as language keywords and variables were identified by prefix of an ampersand.

Activity (6)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
adityamahendru liked this
haibalu007 liked this
SShScriptWorker liked this
sandy_10 liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->