Hello Group,
thank's to everybody for replying. Michael, the same effect happend if the
dataset was preallocated
or allocated in a previous step. The trick for me was to work with an
intermediate Dataset.
Assuming that //STEP01 does a
cp /user/tmp.txt "//'TEST.DATASET1'".
//STEP01 EXEC PGM=BPXBATCH
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//STDPARM DD *
SH /user/copy.sh
/*
//STEP02 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//MYDS DD DSN=TEST.DATASET,
// DISP=(,CATLG,DELETE),UNIT=3390,BLKSIZE=27998,
// SPACE=(CYL,(10,30),RLSE),RECFM=VB,LRECL=256
//SYSIN DD *
REPRO IDS(TEST.DATASET1) OUTFILE(MYDS)
/*
//STEP03 EXEC PGM=IEFBR10
//SYSPRINT DD SYSOUT=*
//DD01 DD DSN=TEST.DATASET,DISP=SHR
//
With best regards, thank you so much
Monika
<snip>
In JES3 this works as designed: With MDS [JES3 Main Device Scheduler], the
resources (data sets, devices, and volumes) that a job requires are already set
up when the job is passed to MVS for execution. (cmp. chapter
4.3.1.2 of JES3 Initialization and Tuning Guide). JCL DISP=SHR indicates that
the data set exists before this step (cmp MVS JCL Reference).
Assuming TEST.DATASET does not exist prior to job submit. Then, JES3 MDS has to
allocate the data set before the job starts in order to fulfill DISP=SHR. So,
did you try adding STEP00 with IEFBR14 to allocate DSN=TEST.DATASET with
DISP=(NEW,CATLG,DELETE) instead of "predefining"
(how exactly??) it in the shell script?
Cheers
Michael
Von: Monika Amiss <[email protected]>
An: [email protected]
Datum: 2013-03-15 16:34
Betreff: BPXBATCH copy to mvs-ds FSUM6259
Gesendet von: IBM Mainframe Discussion List <[email protected]>
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.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN