KR-228* How to execute REXX codes
Addendum to the REXX crash course series.
4 ways to execute REXX codes
1.) Foreground execution
Prefix member name by EXEC within the member listing screen – the method we’ve been using so far.
2.) Another foreground method
Type TSO EXEC 'pds(rexx-member)' on the command line on any screen.
3.) Foreground again (most commonly used method)
4.) Running a REXX exec in batch
Write a jcl step to execute the tso program IKJEFT01.
In the SYSTSIN card we can give the TSO commands to be executed.
Ex:
//SYSTSIN DD * EX 'TEST.SS.REXX.EXEC(CREATOR)'
/*
If you want to pass arguments to your program, then use:
//SYSTSIN DD * %CREATOR arg1 arg2
(CREATOR code should then have an ARG statement to capture the arguments).
Copyright © 2020 Sethu Subramanian All rights reserved. Reach me via email at ssbell @ gmail.com