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. 

//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

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________




Basler Securitas Versicherungs-Aktiengesellschaft | Sitz der Gesellschaft: 
Bad Homburg v.d.H. |
Amtsgericht Bad Homburg v.d.H., HRB 9357 | USt-ID-Nr. DE 276021973 |
Vorstand: Jan De Meulder - Vorsitzender, Markus Jost, Axel Obermayr, Dr. 
Jürg Schiltknecht, Dr. Alexander Tourneau, Dr. Christoph Wetzel |
Aufsichtsratsvorsitzender: Dr. Martin Strobel |
Basler Straße 4, 61345 Bad Homburg v.d.H. |

Basler Lebensversicherungs-AG | Sitz der Gesellschaft: Hamburg |
Amtsgericht Hamburg, HRB 4659 | Ust-ID-Nr. DE 276021973 |
Vorstand: Jan De Meulder - Vorsitzender, Markus Jost, Axel Obermayr, Dr. 
Jürg Schiltknecht, Dr. Alexander Tourneau, Dr. Christoph Wetzel |
Aufsichtsratsvorsitzender: Dr. Martin Strobel |
Ludwig-Erhard-Straße 22, 20459 Hamburg

Basler Leben AG | Aktiengesellschaft nach Schweizer Recht |
Deutsche Zweigniederlassung: Basler Leben AG Direktion für Deutschland |
Amtsgericht Bad Homburg v.d.H., HRB 1229 | Ust-ID-Nr. DE 281452875 |
Hauptbevollmächtigter für Deutschland: Jan De Meulder |
Basler Straße 4, 61345 Bad Homburg v.d.H. |

Basler Versicherung AG | Aktiengesellschaft nach Schweizer Recht |
Deutsche Zweigniederlassung: Basler Versicherung AG Direktion für 
Deutschland |
Amtsgericht Bad Homburg v.d.H., HRB 1228 | USt-ID-Nr. DE 281452875 |
Hauptbevollmächtigter für Deutschland: Jan De Meulder |
Basler Straße 4, 61345 Bad Homburg v.d.H. |

Deutscher Ring Sachversicherungs-AG |
Amtsgericht Hamburg, HRB 7144 | USt-ID-Nr. 276021973 |
Vorstand: Jan De Meulder - Vorsitzender, Markus Jost, Axel Obermayr, Dr. 
Jürg Schiltknecht, Dr. Alexander Tourneau, Dr. Christoph Wetzel |
Aufsichtsratsvorsitzender: Dr. Martin Strobel |
Ludwig-Erhard-Straße 22, 20459 Hamburg

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

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

Reply via email to