REXX - Basic REXX Functions and Subroutines
Duration
4 hours
Overview
In this course you will see how functions and routines can be used to perform complex tasks quickly. You will then branch off to look at some of the more straightforward built-in functions provided by REXX. Scenarios are presented to provide you with ideas on how arithmetic and comparison built-in functions can be used.
Audience
Personnel responsible for writing or maintaining REXX programs.
Prerequisites
Successful completion of the Interskill REXX – General REXX Instructions course, or equivalent knowledge.
Objectives
After completing this course the student should be able to:
- Describe the purpose of REXX functions and subroutines
- Perform tasks using arithmetic functions
- Compare various types of data obtained by REXX
Course Content
Understanding Functions and Subroutines
What are Functions?
User-Defined Functions
Function Syntax
Built-In Functions
Invoking Functions
Subroutines
Numeric Built-In Functions
Benefits of Using Numerical Built-In Functions
Truncating Numeric Values
Generating a Random Number
Formatting Numerical Data
Identifying the Sign of a Number
Determining Absolute Numbers
Identifying the Smallest and Largest Number from a List
Comparison Built-In Functions
Comparison Scenarios
Date and Time Comparison
COMPARE Built-In Function
VERIFY Built-In Function
Related Built-In Functions