On Mon, 18 Mar 2013 07:37:25 -0700, Donald J. wrote:

>I was getting same error in a TEMS script I wrote.
>The sleep fixed it (much of the time, but not every time).
> 
I doubt that it was "the same error".

>#
># Invoke Alert Script & set RC to 1 if email is to be sent
>/u/appl/temsnote/sh/$1.sh $1 "$2"
>returncode=$?
>#
I suspect that in your case, the data set was not allocated
statically in JCL, as in Monika's case, but dynamically
by the temsnote script.

># Wait for de-allocation, then copy file
>sleep 2
>cp $mfile "//'UTIL.OMS.V420.OMS1.TEMSNOTE'"
>sleep 2
> 
The sleep before the cp may have helped; I doubt that the
sleep after the cp made any difference; seems to violate
causality.

>I still get the error on a very small percent of the time:
>cp: FSUM6259 target file "//'UTIL.OMS.V420.OMS1.TEMSNOTE'":
>EDC5061I An error occurred when attempting to define a file to the
>system.--
>   
(For coloro che sanno:  Is it possible for DYNALLOC FREE to return
to its caller before the DEQ is complete?  If so, I'd consider it an
APARable defect; otherwise Donald's code is deficient in performing
the FREE in the background and returning to its caller without
waiting for completion.)

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to