If you are running your EXEC from soemwhere other than the CMS ready=20 prompt (eg. inside either XEDIT or FILEL) then your SAVE LINK file is=20 still left open from prior invocations of your EXEC. Thus the second and= =20 subsequent times you run it you will not be reading SAVE LINK from the=20=
beginning of the file and the PARSE PULL will attempt to read from the=20= terminal. There are multiple ways you can fix this: - run the EXEC form the CMS Ready prompt - close the SAVE LINK file before you read from it (use FINIS) - close the SAVE LINK file after you read it (but it will still be open=20= if your EXEC has a problem - have your EXECIO read line K from the file - have EXECIO read all the lines at once and use the FINIS option - switch from EXECIO to a pipeline - and probably several other methods as well I'd recommend switching to a pipeline. Brian Nielsen On Mon, 11 Dec 2006 15:52:54 +0100, Zoltan Balogh=20 <[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=20 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 past= e >all of them, but i find where the rexx stop. > >(The part of the REXX where the script stops, when i start from an anoth= er >REXX): >------------------------------ >/* */ >'SET IMSG OFF' >'SET EMSG OFF' >'ERASE INFO SAVE A' >trace off >trace O >say 'Link to the DB save disk running, Please WAIT' >/*QSQLDMK1 =3D ' QSQLDMK1 Pas de sauvegarde'*/ >'LISTFILE SAVE LINK A (ALL STACK' >Parse Pull . . . . . nb . >'DESBUF' > Do K=3D1 to nb > 'EXECIO 1 DISKR SAVE LINK A' > Parse Pull server dsk . >say 'Im here right now' >--------------------------------------- >I dont get back the line i inserted between the lines. So the Parse Pull= =20 may >be wrong. (I tried to paste the say line to other places too, so i KNOW=20= the >problem is >with Parse Pull or EXECIO). But why? > >Can you help me? > >Zoltan >
