View previous topic :: View next topic
|
Author |
Message |
chaoj
Active User
Joined: 03 Jun 2010 Posts: 103 Location: Dalian
|
|
|
|
I'm trying to copy z/OS dataset to USS file using the JCL below
but get a error
JCL
Code: |
//COPYSTEP EXEC PGM=IKJEFT01
//INMVS DD DSN=EV6946.USS.TO.MVS,DISP=OLD
//OUTHFS DD PATH='/SYSTEM/tmp/EV605H.GV55.DS.SLD9998'
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD *
OCOPY INDD(INMVS) OUTDD(OUTHFS) TEXT
/* |
Error
Code: |
READY
OCOPY INDD(INMVS) OUTDD(OUTHFS) TEXT
RETURN CODE 0000006F, REASON CODE 00000004. AN ERROR OCCURRED DURING THE OPENING OF HFS FILE /SYSTEM/tmp/EV605H.GV55.DS.SLD9998.
READY
END |
I read the sample below
publib.boulder.ibm.com/infocenter/zos/v1r13/index.jsp?topic=%2Fcom.ibm.zos.r13.bpxa500%2Ftsoocopy.htm
could anyone tell me what's wrong with my code ? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
The 6F return code is given as "Permission is denied" in the Unix System Services MAC manual. The user id the job ran under does not have write access to at least one of the directory levels in your path name, or the file already exists and the user id cannot write to that file. |
|
Back to top |
|
|
chaoj
Active User
Joined: 03 Jun 2010 Posts: 103 Location: Dalian
|
|
|
|
Robert Sample wrote: |
The 6F return code is given as "Permission is denied" in the Unix System Services MAC manual. The user id the job ran under does not have write access to at least one of the directory levels in your path name, or the file already exists and the user id cannot write to that file. |
Thank you Robert !
I add a Permission Parm and create file in DD like below , it worked !
Code: |
//COPYSTEP EXEC PGM=IKJEFT01
//INMVS DD DSN=EV6946.USS.TO.MVS,DISP=OLD
//OUTHFS DD PATH='/SYSTEM/tmp/EV6946.MVS.TO.USS2',
// PATHOPTS=(OCREAT,OWRONLY),PATHMODE=(SIRUSR,SIWUSR)
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD *
OCOPY INDD(INMVS) OUTDD(OUTHFS) BINARY CONVERT(NO)
/* |
|
|
Back to top |
|
|
|