everything is set now! you can use the following coding to start another rexx script asynchronously. This means the calling script continues without waiting for the return of the called procedure.
e.g.
startsubtask('HelloWorld',DATE(),TIME()) calls HelloWorld.rexx and passes 2 parameters to it
startsubtask:
PARSE ARG rexx
pass=''
DO i=2 TO 11
IF ARG(i,'E')=1 THEN pass=pass','ARG(i)
ELSE LEAVE
END
pass=SUBSTR(pass,2)
rexdir=VALUE('HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\RxLaunch.exe\Path', ,"WIN32")
ITERATEEXE(rexdir||'RXLAUNCH.EXE',rexx'.REX',,,pass,'M')
RETURN
|