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
 
Batch jcl to copy from MVS to Unix System Services

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Batch jcl to copy from MVS to Unix System Services
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: 8187
Location: East Dubuque, Illinois, USA

PostPosted: Thu Oct 02, 2008 6:59 pm    Post subject:
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    Post subject: Reply to: Batch jcl to copy from MVS to Unix System Services
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: 8187
Location: East Dubuque, Illinois, USA

PostPosted: Thu Oct 02, 2008 7:43 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 1 Fri Nov 17, 2017 9:49 am
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Generate public-private key in batch ... vasanthz All Other Mainframe Topics 6 Fri Sep 15, 2017 9:20 am

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