Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 7935
Location: Bellevue, IA

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: 7935
Location: Bellevue, IA

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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us