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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: HTTP from a Z/OS (non-Unix) batch job??
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Tue Nov 01, 2011 11:41 pm    Post subject: Reply to: HTTP from a Z/OS (non-Unix) batch job??
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 http://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    Post subject:
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: 1458
Location: Azeroth

PostPosted: Wed Nov 02, 2011 12:16 am    Post subject:
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,
http://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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm


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