View previous topic :: View next topic
|
Author |
Message |
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
I want to do some interaction with a web site from a batch job. It will need to be able to navigate to a page, maintain a session, and copy a page of data.
I have done this kind of thing with Unix-based servers using a CGI interface. I've also done it with Windows-based PCs. The advantage for mainframe in this instance would be the ability to run a scheduled job in a scheduler to which I already have access.
So...is there a text-based "browser" buried in the IBM IP services? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
It will need to be able to navigate to a page, maintain a session, and copy a page of data. |
all depends on the complexity of the navigation
to just <download> a simple page cURL might be an option
see www-03.ibm.com/systems/z/os/zos/features/unix/ported/
or possibly a REXX script, there are quite a few examples floating on the net
edited to add ...
P.S. I had not noticed the
requirement...
but why ?
given that I guess that REXX is the only alternative |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
I just found that we have an IBM HTTP Server running.
Is the cURL thing for Unix on the mainframe? I only have the "old fashioned" mainframe available. (From the description:It is a command-line UNIX application, and runs in the z/OS UNIX System Services environment.) |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hi,
If you have SAS then a web link can be defined to a filename declaration and the HTML codes of the page can be scraped off using a data step.
provided the website has no authentication required like userid and password.
Sample program available here,
ibmmainframes.com/viewtopic.php?t=55074&highlight= |
|
Back to top |
|
|
|