MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Access an HTTP file from a mainframe.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
neilxt
Beginner


Joined: 01 Mar 2004
Posts: 23
Topics: 1

PostPosted: Wed May 12, 2004 2:17 pm    Post subject: Access an HTTP file from a mainframe. Reply with quote

I have this project one part of which requires getting acces to an HTTP file from a government web site and using the contents in a COBOL program on the mainframe. The file in question is ...
http://www.ffiec.gov/ratespread/YieldTable.csv

I can parse the CSV just fine, I can download the file manually just fine. But I relly nead an outomated process that our schedulers can handle and I'm having awful problems finding anyone on our server side who can help me set this up.

Is there any way to do this direct from the mainframe? I've tried using FTP but since it's not GETting from an FTP server it fails.
Back to top
View user's profile Send private message Send e-mail
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed May 12, 2004 2:36 pm    Post subject: Reply with quote

Well, since my previous position was at a health care company, we had to do this task many times every day to retrieve reports from Medicaid agencies. There was no method we could find other than manually using the browser to access the web site and perform a download to the user's C: drive. As of a year ago, we were not able to find any available HTTP screen-scraper software that would work for this. My gut feeling is that any potential product would most likely NOT be designed for the mainframe, but rather a Windows environment.

In my current position, we are starting to work with a product called Formula by Managed Objects. One of their newest add-ons is a product that is designed to test and validate web-based transactions. This new product can access a web site, login, navigate menus, and perform just about any task. I don't know yet if it can actually retrieve data and store it somewhere, but I believe it does have that capability.
Back to top
View user's profile Send private message
neilxt
Beginner


Joined: 01 Mar 2004
Posts: 23
Topics: 1

PostPosted: Wed May 12, 2004 2:45 pm    Post subject: Reply with quote

Quote:

As of a year ago, we were not able to find any available HTTP screen-scraper software that would work for this. ... In my current position, we are starting to work with a product called Formula by Managed Objects.


I may not have made myself entirely clear; though give the nature of the problem that's not surprising. I don't need any form of screen scraping or navigation. The HTTP address does not return a web page but a single download file.

Mind you - having said that - I wouldn't be at all surprised if the answer's the same.

The product you're talking about sounds like a PC product that is substantially more than I need. WGET within a CLIST will do the job if I can find someone to schedule it and help me set it up and co-ourdinate with the mainframe monthly run.

I was hoping to find something like WGET that would work on the mainframe the way FTP does.
Back to top
View user's profile Send private message Send e-mail
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Wed May 12, 2004 2:50 pm    Post subject: Reply with quote

I haven't tried it but it might be done using REXX sockets. Do a search on the internet. Bear in mind that the mainframe might have to get thru your filewall.
Back to top
View user's profile Send private message
powerhawk
Beginner


Joined: 08 Nov 2004
Posts: 28
Topics: 4
Location: Stockholm

PostPosted: Fri Dec 10, 2004 3:03 am    Post subject: Reply with quote

Late answer.
We use CALL 'EZASOKET' and it seems to work fine. I have a 1000 statement test program if someone want to see. REXX sockets can also be used. I had a test program quite recently but I can't find it for the moment.
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Fri Dec 10, 2004 10:30 am    Post subject: Reply with quote

port wget to uss
Back to top
View user's profile Send private message Visit poster's website
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Mon Dec 13, 2004 12:36 pm    Post subject: Reply with quote

Just for info, although not relevant in this specific case, CICS/TS V3.1 (due out in about 6 months) directly supports outbound http requests.
Back to top
View user's profile Send private message
powerhawk
Beginner


Joined: 08 Nov 2004
Posts: 28
Topics: 4
Location: Stockholm

PostPosted: Tue Dec 14, 2004 3:20 am    Post subject: Reply with quote

To semigeezer: Do you mean you want the source?
To Mike: Yeah, we will get it quite soon. I see forward to that event!
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Dec 14, 2004 4:04 am    Post subject: Reply with quote

no. wget is a tool that runs on Unix systems to get data over http. It is open source so you can port it to USS. I use it every day on Windows and Linux. Very easy. You just say wget http://wuatever-your-url-is and it retrieves it.

Unfortunately, I don't see it listed as having already been ported to USS at IBM's ported unix tools page http://www-1.ibm.com/servers/eserver/zseries/zos/unix/bpxa1toy.html
Back to top
View user's profile Send private message Visit poster's website
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Tue Dec 14, 2004 11:17 am    Post subject: Reply with quote

Powerhawk,
Can you please post your test program. Would like to test using EZASOKET. Thanks
Back to top
View user's profile Send private message
powerhawk
Beginner


Joined: 08 Nov 2004
Posts: 28
Topics: 4
Location: Stockholm

PostPosted: Thu Dec 16, 2004 4:36 am    Post subject: Reply with quote

Here is the source. I'm not the author so don't blame me for the GO TO statements. All comments are in swedish. Sample of the JCL is in the comments. The program input is in the SYSIN file like port, IP-adress, message to send and so on. IP-adresses and input data are modified for security resons.
[code:1:428af0fd14]
*---------------------------------------------------------------
IDENTIFICATION DIVISION.
PROGRAM-ID. UC03T1.

*---------------------------------------------------------------
* Modul: UC03T1 (IP-Socket-Client)
*
* Funktion: Programmet
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group