IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

OCOPY command to copy a MVS Dataset to a HFS


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
arun_st

New User


Joined: 23 Feb 2007
Posts: 3
Location: Bangalore

PostPosted: Thu Apr 19, 2007 3:33 pm
Reply with quote

Hi,

I'm using OCOPY to copy a MVS Dataset to a HFS ..and i need to issue the command from USS.

tsocmd "ALLOCATE FILE(sysut1) DATASET(ABC.DRVREQ.TEXT')"
tsocmd "ALLOCATE FILE(pathname) PATH('/u/USER245/list1')"
tsocmd "OCOPY INDD(sysut1) OUTDD(pathname) TEXT PATHOPTS(OVERRIDE)"

but when i give the third command..i get the below error

OCOPY INDD(sysut1) OUTDD(pathname) TEXT PATHOPTS(OVERRIDE)
RC(12)
FILE INFO-RETRIEVAL NOT PERFORMED, IS NOT ALLOCATED
READY
END

it say that the file list1 is already in use...how do i solve this problem?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 19, 2007 3:50 pm
Reply with quote

My only guess would be that the file specified in the path does not exist.

Of course I may be wrong, not having played with USS for years now.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top