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

Batch jcl to copy from MVS to Unix System Services


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

New User


Joined: 04 Jun 2007
Posts: 2
Location: Hartford, CT

PostPosted: Thu Oct 02, 2008 6:44 pm
Reply with quote

I have a need to copy a PDS member to HFS and call the member something different in UNIX.
For example I'm trying to copy a PDS member called TCPDATA and place it in /etc/ as resolv.conf
Is there any unix batch jcl that can do this?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Oct 02, 2008 6:59 pm
Reply with quote

Code:
//OPUT     EXEC PGM=IKJEFT01,DYNAMNBR=400,REGION=0M
//SYSPRINT DD   DUMMY
//SYSTSPRT DD   SYSOUT=*
//SYSTSIN  DD   *
   oput 'SYS1.TCPPARMS(TCPDATA)'         +
        '/etc/resolv.conf'
//
This will only work if you have Unix permissions to write to the /etc directory, and have write permissions to overlay the existing resolv.conf file.
Back to top
View user's profile Send private message
Fran Piorek
Warnings : 1

New User


Joined: 04 Jun 2007
Posts: 2
Location: Hartford, CT

PostPosted: Thu Oct 02, 2008 7:34 pm
Reply with quote

Robert,

That jcl works wonderful.

Thanks for your help.

Regards,

Fran
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Oct 02, 2008 7:43 pm
Reply with quote

Fran: glad to hear it worked.
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 Sysplex System won't IPL at DR site I... All Other Mainframe Topics 2
No new posts How to access web services/website? Mainframe Interview Questions 4
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
Search our Forums:

Back to Top