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 

Connecting to Unix from Mainframe

 
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
jai79
Beginner


Joined: 22 May 2007
Posts: 8
Topics: 3

PostPosted: Wed May 23, 2007 5:21 am    Post subject: Connecting to Unix from Mainframe Reply with quote

We tried invoking Unix Shell script using rexec command. Below is the parameters that we used in a sample JCL.
rexec -l {UserID} -p {Password} -s {Port number} UserID@Hostname


We receive the following error message, can anyone help it out?

rexecd: 0826-604 The login is not correct.

any help would be greatly appreciated.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed May 23, 2007 5:45 am    Post subject: Reply with quote

NOT a JCL problem I think but maybe a rexec problem? Whatever rexec is. Are you sure you have the parms specified correctly, the correct port correct hostname etc. I presume 0826-604 is a message number? Have you looked it up?
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
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: Wed May 23, 2007 5:52 am    Post subject: Reply with quote

jai79,

Check this link

http://www.mkssoftware.com/docs/man1/rexec.1.asp

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


Joined: 22 May 2007
Posts: 8
Topics: 3

PostPosted: Wed May 23, 2007 6:41 am    Post subject: Reply with quote

Nic,
Parameters are correct.
No much information about the error message number.

Kolusu,
same link iam looking into, thanks a lot.

Should i do anything in the UNIX(to) server to listen this call ?
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed May 23, 2007 7:25 am    Post subject: Reply with quote

I've looked at that link and also at the equivalent page for rexecd
According to the rexec page -s is not an option
according to the rexecd page the port is 512

Is this any help or a clue?
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
jai79
Beginner


Joined: 22 May 2007
Posts: 8
Topics: 3

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

we are trying other secured way of connectiion using SSH also.
Any one has idea how to use SSH in mainframe to connnect UNIX server.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu May 24, 2007 2:26 am    Post subject: Reply with quote

Well, that is a different topic and you should have started one. But I have no idea as to an answer to your Q.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
paray2x
Beginner


Joined: 16 Sep 2006
Posts: 1
Topics: 0

PostPosted: Fri May 25, 2007 7:08 am    Post subject: Reply with quote

Hi,

In order to connect/transfer to a secure Unix server from Mainframe, try the BPXBATCH utility.

Check http://www.duemig.de/Dokumente/BPXBatch.pdf for more info

--Para
Back to top
View user's profile Send private message
jai79
Beginner


Joined: 22 May 2007
Posts: 8
Topics: 3

PostPosted: Tue May 29, 2007 4:46 am    Post subject: Reply with quote

we tried using REXEC to connect UNIX and found it is not secured. Then changed the scope to use SSH or BPXBATCH.
Is it possible to connect remote UNIX box Using BPXBATCH ?
Any sample code to invoke SSH in jcl (our unix box is remote) ?

Thanks Para for the information provided.

Regards
Jai
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