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
 

 

How to connect to another Mainframe session using REXX.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
nmodi85

New User


Joined: 13 Jul 2011
Posts: 9
Location: India

PostPosted: Thu Sep 29, 2011 4:12 pm    Post subject: How to connect to another Mainframe session using REXX.
Reply with quote

I want to write a REXX code through which I can connect to another mainframe session.

Its just an Idea. If any one can help than its. I want to know is it possible or not ?
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Thu Sep 29, 2011 4:50 pm    Post subject:
Reply with quote

How can we tell if it is possible when you didn't tell us what you want to do? By "mainframe session", do you mean:
- another LPAR on the same machine?
- another LPAR on another machine at your site?
- another LPAR on a machine half-way around the world?
- a started task running on the same machine?
- a started task running on another machine at your site?
- a started task running on a machine half-way around the world?
- a batch job running on the same machine?
- a batch job running on another machine at your site?
- a batch job running on a machine half-way around the world?
- a CICS region running on the same machine?
- a CICS region running on another machine at your site?
- a CICS region running on a machine half-way around the world?
- a TSO user logged onto the same machine?
- a TSO user running on another machine at your site?
- a TSO user running on a machine half-way around the world?
- something else you haven't bothered to explain?
Back to top
View user's profile Send private message
nmodi85

New User


Joined: 13 Jul 2011
Posts: 9
Location: India

PostPosted: Thu Sep 29, 2011 5:01 pm    Post subject:
Reply with quote

Ya I mean to say on the same machine. You are working on mainframe region ABC logon with your user ID and Password.

Now can you open another mainframe Session(having region XYZ) using Rexx program with your own ID and password.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Thu Sep 29, 2011 6:26 pm    Post subject: Reply to: How to connect to another Mainframe session using
Reply with quote

Quote:
I want to write a REXX code through which I can connect to another mainframe session.


OK... go ahead, where is the problem

but unfortunately
Quote:
I want to know is it possible or not ?

NO You cannot do it

the only thing that falls in a similar category,
in a very wiiiiiide sense is a REXX script that invokes the FTP client API
http://publib.boulder.ibm.com/infocenter/ieduasst/stgv1r0/index.jsp?topic=/com.ibm.iea.commserv_v1/commserv/1.8z/appl/FTPrexxAPI/player.html
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Sep 29, 2011 9:43 pm    Post subject:
Reply with quote

Hello,

Why would you want to? If you have access to the "other" mainframe session, simply connect to it. You probably already have a vtam menu that facilitates this.

If you actually do this, all you've done is add overhead (multiple concurrent logins that most likely are not needed) and introduced a level of complexity that would make problem resolution much more difficult.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2038
Location: Silicon Valley

PostPosted: Thu Sep 29, 2011 10:21 pm    Post subject: Reply to: How to connect to another Mainframe session using
Reply with quote

Quote:
mainframe region ABC logon

It is not clear what is meant by 'region'. Please elaborate.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Thu Sep 29, 2011 10:46 pm    Post subject: Reply to: How to connect to another Mainframe session using
Reply with quote

whatever the meaning intended/assigned to the terms used ..
the only protocols for which a REXX interface is available are

CPICOMM, LU62, and APPCMVS thru the host command environments
http://publib.boulder.ibm.com/infocenter/zos/v1r11/index.jsp?topic=/com.ibm.zos.r11.ikja300/ikj4a38016.htm

z/OS Communications Server supports the REXX Sockets API and the REXX FTP API.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1D480/3.5?SHELF=F1A1BKB1&DT=20090326170909

I would discard the CPICOMM, LU62, and APPCMVS stuff
but if the TS wants to communicate to anything that supports the TCP/IP socket interface protocol, he can do it
zOS communication server makes available to a REXX script all the APIs needed
so all that is needed is the time and the skills

there are many examples on the net of 3270 emulators written in C (X3270 for example)
nice exercise to write a REXX version icon_biggrin.gif
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts SNMP trap from Mainframe bipinpeter Compuware & Other Tools 6 Wed Apr 26, 2017 3:05 pm
No new posts Connect:Direct - RC=000000FF MSG=SVTM... R.Manivannan All Other Mainframe Topics 3 Fri Apr 21, 2017 1:30 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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