
Trace the history of Rex (structured extended executer), created in 1979 by Mike Cowlishaw, as an interpreted, English-based language for automation, with clear syntax errors and line-by-line trace modes.
Rexx features free format and cross-platform support from z/OS to Linux, Unix, and Windows; it's easy to learn and excels at string handling using parser var and post word phrase.
Explore a Rex checklist project that runs option 15 for rapid, filtered operating system checks, reviews IMF systems and log archiving, and reveals Rex code structure and panels.
Install the Open Object Rex interpreter and a text editor, set up a RECs folder, configure editor line numbering, then create and run a Hello Rex program with post command.
Master SPF-lite commands to move, edit, save, clone, rename, and navigate directories; perform find, change, block operations, copy or move lines, and convert text to upper or lower case.
Learn how to show and hide file extensions in Windows, toggle the 'hide extensions for known file types' option, and understand how changing an extension can affect file usability.
Explore the Rexx parse instruction, including pass options to split a string into words or columns, assign to variables, use separators, and build a final variable with pass value.
Explore the REXX if instruction, its syntax with then and else, and how to group multiple actions using do and end. Understand nop as a no-op placeholder.
Explore how to implement simple do loops in REXX, group instructions with do, validate user input, and use a start label, a counter, and empty-input messages.
Master the controlled do loop in Rexx, using a control variable, start, finish, increment, and optional limit to govern iterations, with examples reading files and stems, and inside-loop variable changes.
Explore the iterate instruction in Rexx programming to control loops by returning to the loop start, skipping remaining instructions, and deciding when to continue, exit, or loop again.
Explore do while and do until loops in Rexx, showing how do while tests expressions before each entry and how do until executes at least once, prompting for a password.
Demonstrate the combined do with a variable, a limit, and the by clause. Show how the example prompts for a password end after five attempts, with welcome or user revoked.
Explore nested do loops in Rexx with proper end clauses and explicit control variables, as you build outer and inner loops, generate multiplication tables, and use iterate to control progress.
Discover the three comment styles in REXX code, including single-line, multi-line, and title comments, and learn how to place literals using double or single quotes, with examples.
Explore how Rex uses variables, literals, and concatenation, including quotes and spacing rules; apply colon, semicolon, and comma to labels, sentences, and line continuation, with built-in functions.
Explore REXX arithmetic, comparison, and logical operators, including +, -, *, /, and %, with integer division and remainders, exponentiation (**), and/or/xor logic for conditionals.
Learn how Rex builds internal functions, passes literals or variables as parameters, and uses string, word, justification, numeric, environment, and I/O functions to manipulate data and interact with the system.
Explore copies to repeat strings, dlstr to delete characters, and insert to place a new string with parameters like position, length, and padding or bound symbols.
Explore rex overlay, reverse, and substring to manipulate strings: overlay inserts a new string into the original at a start position with optional length and path; reverse flips, substring extracts.
Master REXX string handling by using length to count characters, post to locate the first occurrence, and lastpos to search from the end, including spaces and symbols.
Learn arg handling with arc to count and access parameters, validate data types with datatype, and build character ranges with xrange for efficient string manipulation.
Compare two strings with the compare function to return zero on a match. Pad the shorter string with the part parameter and verify all characters against a reference.
Learn how the REXX functions words, wordpos, and word count words and elements, locate positions, and extract words to drive loops over systems or codes.
Center centers a string in width l, padding with spaces or a chosen character and truncating if needed; strip removes leading or trailing characters per option RB, L, or D.
Explore the left and right functions in rex, which take an L parameter and a string, returning a fixed number of characters with padding (spaces or a pad) and truncation.
Explore the abs function to obtain an absolute value, the distance from zero, and use max and min to find the largest or smallest numbers, including nested calls.
Describe the sign function: returns 1 for positive, -1 for negative, and 0 for zero. Use the random function to generate numbers in a range, 0-999 or 10-200 for games.
Learn how REXX TRUNC discards extra decimals without rounding, with n controlling the decimals. Compare with FORMAT, which rounds and pads with spaces or zeros for integer and decimal places.
Master Rexx's USERID, DATE, and TIME functions to read the user id, convert dates between formats, and measure elapsed time for file copies and program runs.
Learn to use linein, lineout, and lines to read, write, and count lines in a file, control the reading location, and manage line records across Windows and Linux.
Learn to use C functions in Rexx to move, copy, delete, and check file existence across folders. Understand return codes, path specification, renaming, and directory context for reliable file operations.
Learn to read and write an entire file in Rexx by using programs that copy records from an input file to an output file, with line in, counters, and loops.
Hi everyone!!!
In this course, we are going to learn how to program with REXX, a very simple language used mainly for automation. We will start from 0, so no knowledge of any programming language is necessary. But at the same time, we will go quickly with the most fundamental sections that are typical and common for any programming language.
First, we will see how to work with REXX in the Windows environment so that you can also use it for personal tasks and to facilitate your routines. We will work with a very intuitive and useful text editor for programming and test the REXX instructions in an interactive way.
We will see how to interact with the Windows operating system and how to handle files, we will also see how to execute MS-DOS commands.
Then, we will see how to use REXX on z/OS. I will tell you how to get access to a Mainframe with z/OS so that you can access it from your computer and run your REXX programs IBM operating system. This environment is the original system where REXX was created. We will apply everything we have learned during the Windows phase and look at the specific options for working with REXX on z/OS (the latest operating system from IBM).
We will get the most out of REXX by creating interactive panels, handling datasets, and interacting with z/OS.
During the course, we will find simple tests and practical assignments to be able to review and apply what we are learning. I will review those assignments personally.
I hope you enjoy it and you find this course helpful. I'm attentive to my email, so you can contact me with any need.
Thank you.
Wish you the best!