On Monday, 12/11/2006 at 05:48 CET, Zoltan Balogh <[EMAIL PROTECTED]> wrote: > Hi again! > > ive got more rexx program , and in first step i would like to automatize them > for start them after the previous finished. > the problem is that, when i start them from command prompt, they run nicely. > But after i made a rexx program like this, the second program dont want to run > correctly, it "freez": > --------------- > /* */ > 'firstrex' > 'secondrex' > 'thirdrex' > ---------------- > > The rexx programs are very complex (wrote by other ones), so i wont paste all > of them, but i find where the rexx stop.
When you run them from the command line, CMS will perform 'end of command' cleanup, including closing any open files. So, when secondrexx runs, all of the files opened by firstrexx are closed. When you run them in an exec, end-of-command cleanup is NOT performed (the calling exec is still running). Do the programs use the same files? Try placing a 'FINIS * * A' before you run each program. (If the programs read files on other disks, add a FINIS for those disks as well.) /* */ 'firstrexx' 'FINIS * * A' 'secondrexx' 'FINIS * * A' 'thirdrexx' exit Alan Altmark z/VM Development IBM Endicott
