IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to connect to another Mainframe session using REXX.


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Sep 29, 2011 4:50 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Sep 29, 2011 6:26 pm
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
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

Moderator Emeritus


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

PostPosted: Thu Sep 29, 2011 9:43 pm
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

Global Moderator


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

PostPosted: Thu Sep 29, 2011 10:21 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Sep 29, 2011 10:46 pm
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
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.
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top