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

HTTP from a Z/OS (non-Unix) batch job??


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Tue Nov 01, 2011 11:34 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10903
Location: italy

PostPosted: Tue Nov 01, 2011 11:41 pm
Reply with quote

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
Quote:
(non-Unix)
requirement...
but why ?
given that I guess that REXX is the only alternative
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Tue Nov 01, 2011 11:48 pm
Reply with quote

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
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1753
Location: Tirupur, India

PostPosted: Wed Nov 02, 2011 12:16 am
Reply with quote

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
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Free space of a mulitvolume PS datase... TSO/ISPF 7
No new posts How to close Datacom MUF URT used by ... CICS 0
No new posts Activate WLM policy in batch All Other Mainframe Topics 2
No new posts MacKinney Batch to CICS upgrade causi... CICS 7
No new posts Run rexx in batch job CLIST & REXX 7
Search our Forums:


Back to Top