Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to copy z/OS dataset to USS file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Thu Jul 26, 2012 7:25 pm    Post subject: How to copy z/OS dataset to USS file
Reply with quote

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
http://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
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8154
Location: East Dubuque, Illinois, USA

PostPosted: Thu Jul 26, 2012 7:39 pm    Post subject: Reply to: How to copy z/OS dataset to USS file
Reply with quote

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
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Fri Jul 27, 2012 7:27 am    Post subject: Re: Reply to: How to copy z/OS dataset to USS file
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us