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

Copy some files and floders form HFS in a Z/os to another


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kick
Warnings : 1

New User


Joined: 12 Apr 2005
Posts: 24
Location: shanghai china

PostPosted: Wed Oct 19, 2005 2:52 pm
Reply with quote

hi, guys

i want to copy some files and floders form HFS in a Z/os to another.


what can i do ?? i create a shell to tar the files , but i don't know how to

execute this shell in ishell enviorment . '


thanks & regars.

kick
Back to top
View user's profile Send private message
Paddy

New User


Joined: 12 Sep 2005
Posts: 46
Location: Paris France

PostPosted: Wed Oct 19, 2005 6:28 pm
Reply with quote

Hi kick,

You can copy the files from HFS to PDS or Sequential dataset in Z/OS easy whit JCL like this

//MYJOB JOB 1,'PADDY',MSGLEVEL=(1,1),CLASS=A,
// MSGCLASS=H,NOTIFY=&SYSUID,TIME=1439
//*
//COPYSTEP EXEC PGM=IKJEFT01
//*
//OUTMVS DD DSN=MY.PDS(MYMEMBER),DISP=SHR
//INHFS DD PATH='/MYDIRECTORY',
// PATHDISP=(KEEP,DELETE),
// PATHOPTS=(ORDWR,OCREAT,OAPPEND),PATHMODE=(SIRUSR,SIWUSR)
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
OCOPY INDD(INHFS) OUTDD(OUTMVS) TEXT CONVERT(YES) PATHOPTS(USE)

Regards, I hope help you.

Paddy
Back to top
View user's profile Send private message
kick
Warnings : 1

New User


Joined: 12 Apr 2005
Posts: 24
Location: shanghai china

PostPosted: Fri Oct 21, 2005 7:24 am
Reply with quote

hi, guy

i want to copy the file from HFS of a mainframe to another HFS of another mainframe .

can i use this job to copy the pds(member) of ps to HFS ??



thanks & regards.

kick
Back to top
View user's profile Send private message
kick
Warnings : 1

New User


Joined: 12 Apr 2005
Posts: 24
Location: shanghai china

PostPosted: Fri Oct 21, 2005 1:42 pm
Reply with quote

hi, guy

i use your jcl to copy the HFS to PDS or PS ,

the RC == 0 , but the file of MVS is a null file .

can you tell me why ??


thanks & regards.

kick
Back to top
View user's profile Send private message
seshareddy_p

New User


Joined: 16 Jun 2005
Posts: 7

PostPosted: Mon Oct 24, 2005 10:44 pm
Reply with quote

Hi, guys

can u explain, what is HFS
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Tue Oct 25, 2005 5:40 am
Reply with quote

HFS is the (Unix) Hierarchical File System. You can look here for more details:

publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/dgt2d430/3.9?DT=20040624112123
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts VB to VB copy - Full length reached SYNCSORT 8
Search our Forums:

Back to Top