Try putting a "sleep 2" after the cp. -- Donald J. [email protected]
On Fri, Mar 15, 2013, at 08:33 AM, Monika Amiss wrote: > Dear Group, > > I have a strange behavior. In the first step I call an Shellscript which > does a > cp /user/tmp.txt "//'TEST.DATASET'". > The TEST.DATASET ist predefined and empty. > If I run only Step01 everything is Okay, the TEST.DATASET is filled with > the data. > 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. > > //STEP01 EXEC PGM=BPXBATCH > //STDOUT DD SYSOUT=* > //STDERR DD SYSOUT=* > //STDPARM DD * > SH /user/copy.sh > /* > //STDENV DD * > _BPX_SHAREAS=YES > _BPX_SPAWN_SCRIPT=YES > /* > //STEP02 EXEC PGM=TESTLEER > //SYSPRINT DD SYSOUT=* > //DD01 DD DSN=TEST.DATASET,DISP=SHR > // > > We're running z/OS1.12 & JES3. > Somebody has an idea? Any hint appreciated. > With best regards > Monika > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN -- http://www.fastmail.fm - The way an email service should be ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
