enrico-sorichetti wrote:because Your setup uses the SYSEXEC ddname
SYSEXEC contains only REXX stuff
Exactly. Adding /*REXX*/ on the first line is a good (and non-hurting ) practice to be sure your rexx programs will work in any environment. For example, I'm not sure they would work if you put them in a different library than the one for your SYSEXEC (or SYSUEXEC) and called them with the EXEC command.
expat wrote:It seems that the OP has been asked some questions to clarify what is happening but has failed to respond, so until that time, unless you are ABSOLUTELY sure that you know what the problem is and exactly why it doesn't work, perhaps a refrain from posting may eliminate the clutter that is accumulating in this thread
I understand what you're saying and I was just trying to help save some time. Nevertheless, I tested his version of the code and mine. Mine works well while his doesn't, so I'm pretty sure what was his errors.