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: 10256
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: 1491
Location: Chennai

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 HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts Batch job tuning sgandhla Testing & Performance analysis 5 Fri Mar 24, 2017 9:41 pm
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 7 Thu Mar 23, 2017 5:12 am
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm


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