View previous topic :: View next topic
|
Author |
Message |
Fran Piorek Warnings : 1 New User
Joined: 04 Jun 2007 Posts: 2 Location: Hartford, CT
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Fran Piorek Warnings : 1 New User
Joined: 04 Jun 2007 Posts: 2 Location: Hartford, CT
|
|
|
|
Robert,
That jcl works wonderful.
Thanks for your help.
Regards,
Fran |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Fran: glad to hear it worked. |
|
Back to top |
|
|
|