Some things not immediately obvious - all Rexx clauses must end with a semicolon! So, you might be wondering how do all your programs work when you never put semicolons in the code? A line end along ...
If you are stacking the results of the query and then doing an EXECIO * to write them to a data set, you will need to stack a null line after the query. EXECIO looks for the null to signal the end of ...