Probably not what you want, but the first thing I think of is ssh. I've written web applications running php on Linux/Windows that do things like this (if I remember correctly):

  exec("ssh use...@mainframe.ip some_script.sh",$out,$rc);

SSH keys need to be setup on the running system, but that's not difficult. Then the script can run, do what it needs to grab the small amount of data, and echo it back. This is from the server side of the web application though - maybe you're looking for something on the browser javascript side.

On 1/10/2019 6:02 PM, Brian Westerman wrote:
Hi,

I have a "how can I do that" type of question.  This has probably been happening for a 
long time, but I have not had to deal with it before now.  I know that there are probably vendor 
written ways, but the programmers want to "roll their own method" if possible as the 
first choice.  Maybe I'm just too close to this and I am missing something simple.

I know that IBM added the web enablement toolkit to provide the ability for applications 
under z/OS to access data that might be on some web server out in the net to get 
information or data, but is there a built-in way to do this in the other direction, 
getting the data from the mainframe directly back to the web based application?  For 
instance, if I'm running in a web application under windows and I need to know if some 
specific item was updated on z/OS and what it was updated to, is there a method or API 
that I can use to "ask" the mainframe to run a program that will do the check 
for me dynamically and pass me back the solution?

The reason I ask is that we have a user group that moved "off" the mainframe 
but they want to be able to get a date and time from a file that is still on the 
mainframe.  That file is updated periodically within a completely unrelated mainframe 
application.  The entire file is huge (it's actually within an Adabas file) and they just 
want the two fields from one record, which needs to be processed by a specific program on 
the mainframe the would read the file, do the computations on the record and then pass 
the solution (which is basically just a date and time)  back to the windows server that 
the user is now running on who needs that piece of information.

What would be the simplest or best way to accomplish that?

Thanks for your help ahead of time.

Brian

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN



----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to