If we used the following code in routine
Code: Select all
EARLIER Statements
....
Call DSU.ExecSH(UnixCmd, ErrCode)
If ErrCode <> 0
Then Call DSLogFatal("failed.", rtnName)
.......
NEXT Statements
Will the ErrCode check wait for the unix command to be completely executed i.e for example if i have issued a copy command, which may say take 10 secs. Then will the code come to the ErrCode check and wait there until the UnixCmd is successfully executed or checks only for immediate failure of the UnixCmd.
I need to know this because in the NEXT Statements I want to immediately use one of the files which was obtained as a result of UnixCmd