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: 8319
Location: Dubuque, Iowa, 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: 8319
Location: Dubuque, Iowa, 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 batch cobol/db2 paragraph fall thru a... alois eisshofer COBOL Programming 5 Wed Mar 14, 2018 12:21 am
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am
No new posts Image copy after Online reorganization. lind sh IMS DB/DC 0 Tue Jan 30, 2018 9:58 pm
No new posts Copy Specific Groups V S Amarendra Reddy SYNCSORT 10 Thu Jan 11, 2018 1:16 am
No new posts CA Intertest Batch 555shanth CA Products 0 Tue Nov 28, 2017 11:10 am

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