REXX - Manipulating and Converting Data
Duration
4 hours
Overview
This course looks at the built-in REXX functions that can be used format, and manipulate strings of data, as well as date and time formats. Details on converting data to and from Hexadecimal, Decimal, Binary and Character formats is also discussed. Scenarios are presented to provide you with ideas on how these 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 How Strings of Data can be Formatted
- Delete and Insert Data From a String
- Describe how Various Data can be Converted
Course Content
Data Formatting Built-In Functions
Aligning Data Within a String
CENTER, LEFT, RIGHT, and JUSTIFY Built-In Functions
Controlling Spacing Between Words
Copying Strings
Inserting Substrings Into a Target String
Removing Data from a String
DELWORD and DELSTR Built-In Functions
String Built-In Functions
Determining the type of String
DATATYPE Built-In Function
Identifying the Length of a String
Obtaining Part of a String Using the SUBSTR Built-In Function
Reversing String Characters
Conversion Built-In Functions
What Data Can be Converted?
Converting Data – Binary, Hexadecimal, Decimal and Character
Conversion Scenarios
Date and Time Conversion
DATE Built-In Function
TIME Built-In Function
Elapsed Time Clock