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

#                                                             
# Invoke Alert Script & set RC to 1 if email is to be sent    
/u/appl/temsnote/sh/$1.sh $1 "$2"                             
returncode=$?                                                 
#                                                             
# Wait for de-allocation, then copy file                      
sleep 2                                                       
cp $mfile "//'UTIL.OMS.V420.OMS1.TEMSNOTE'"                   
sleep 2                                                       

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.-- 
  Donald J.
  [email protected]


On Mon, Mar 18, 2013, at 07:12 AM, Paul Gilmartin wrote:
> On Mon, 18 Mar 2013 05:12:59 -0700, Donald J. wrote:
> 
> >Try putting a "sleep 2" after the cp.
> > 
> Are you a betting man?
> 
> 
> >On Fri, Mar 15, 2013, at 08:33 AM, Monika Amiss wrote:
> >> Dear Group,
> >>
> >> But if I run it with STEP01 and STEP02, I get in STEP01 (!!!!) the
> >> following error message:
> >>  cp: FSUM6259 target file "//'TEST.DATASET'": EDC5061I An error occurred
> >>  when attempting to define a file to the system.
> 
> -- gil
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN

-- 
http://www.fastmail.fm - Choose from over 50 domains or use your own

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

Reply via email to