MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Opening a SSH from JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
gmuralik
Beginner


Joined: 23 May 2007
Posts: 4
Topics: 1

PostPosted: Thu May 24, 2007 1:41 am    Post subject: Opening a SSH from JCL Reply with quote

Hello Group, This is my first posting here and hope to get to help from all this group.

Wehave a set of JCL's running in Mainframe environment that kicks
SQR to run and send output to SAR. Now we wanted to design such
that JCL to call a Secure Unix Shell, The Shell should execute
in Unix box. My questions is
Do we need to enable connectivity between Mainframe to Unix?
How do we call a Secure Shell from JCL and any Daemon setup required before calling Secure Shell?
is rexec command to call a Shell script is secured?

Any documentation or sample code would be greatly appreciated.

Thanks in advance
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu May 24, 2007 5:43 am    Post subject: Reply with quote

gmuralik,

BPXBATCH is an MVS utility that you can use to run shell commands or shell
scripts and to run executable files through the MVS batch environment. You
can invoke BPXBATCH:

    * In JCL
    * From the TSO/E READY prompt
    * From TSO CLISTs and REXX execs
    * From a program


Check this link for documentation

http://www.duemig.de/Dokumente/BPXBatch.pdf

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu May 24, 2007 7:55 am    Post subject: Reply with quote

qmuralik,
The UNIX box is a separate machine and not just UNIX under MVS?

We do this with OPC job scheduler and UNIX machine defined a remote workstation.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
gmuralik
Beginner


Joined: 23 May 2007
Posts: 4
Topics: 1

PostPosted: Thu May 24, 2007 8:28 am    Post subject: Reply with quote

Kolusu, i read that using BPXBATCH can only call Unix or Shell commands with in Mainframe Unix System services. I need to know to how to run Unix shell Scirpts via SSH from JCL?
Back to top
View user's profile Send private message
gmuralik
Beginner


Joined: 23 May 2007
Posts: 4
Topics: 1

PostPosted: Thu May 24, 2007 8:29 am    Post subject: Reply with quote

Can you give more details about OPC?
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu May 24, 2007 10:34 am    Post subject: Reply with quote

run a Unix script that invokes SSH and call that script from BPXBATCH
Back to top
View user's profile Send private message Visit poster's website
gmuralik
Beginner


Joined: 23 May 2007
Posts: 4
Topics: 1

PostPosted: Thu May 24, 2007 11:39 am    Post subject: Reply with quote

Thanks semigeezer, Do you have any sample code?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group