View previous topic :: View next topic |
Author |
Message |
neilxt Beginner
Joined: 01 Mar 2004 Posts: 23 Topics: 1
|
Posted: Wed May 12, 2004 2:17 pm Post subject: Access an HTTP file from a mainframe. |
|
|
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 |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Wed May 12, 2004 2:36 pm Post subject: |
|
|
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 |
|
 |
neilxt Beginner
Joined: 01 Mar 2004 Posts: 23 Topics: 1
|
Posted: Wed May 12, 2004 2:45 pm Post subject: |
|
|
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 |
|
 |
Bithead Advanced

Joined: 03 Jan 2003 Posts: 550 Topics: 23 Location: Michigan, USA
|
Posted: Wed May 12, 2004 2:50 pm Post subject: |
|
|
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 |
|
 |
powerhawk Beginner

Joined: 08 Nov 2004 Posts: 28 Topics: 4 Location: Stockholm
|
Posted: Fri Dec 10, 2004 3:03 am Post subject: |
|
|
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 |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Fri Dec 10, 2004 10:30 am Post subject: |
|
|
port wget to uss |
|
Back to top |
|
 |
Mike Chantrey Intermediate
Joined: 10 Sep 2003 Posts: 234 Topics: 1 Location: Wansford
|
Posted: Mon Dec 13, 2004 12:36 pm Post subject: |
|
|
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 |
|
 |
powerhawk Beginner

Joined: 08 Nov 2004 Posts: 28 Topics: 4 Location: Stockholm
|
Posted: Tue Dec 14, 2004 3:20 am Post subject: |
|
|
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 |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
|
Back to top |
|
 |
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Tue Dec 14, 2004 11:17 am Post subject: |
|
|
Powerhawk,
Can you please post your test program. Would like to test using EZASOKET. Thanks |
|
Back to top |
|
 |
powerhawk Beginner

Joined: 08 Nov 2004 Posts: 28 Topics: 4 Location: Stockholm
|
Posted: Thu Dec 16, 2004 4:36 am Post subject: |
|
|
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 |
|
 |
|
|