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 

Using REXX to post data to HTTP site !!

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
amit4u79
Beginner


Joined: 24 Oct 2005
Posts: 109
Topics: 36
Location: India

PostPosted: Tue Jun 26, 2007 11:13 pm    Post subject: Using REXX to post data to HTTP site !! Reply with quote

Hi,

I searched the forum but did not find any match relevant to my query. Does anyone have a sample rexx to POST data from rexx to HTTP site. My requirement is I have to send data in a PS(Physical sequential) file formatted in a certain way to a HTTP site.

Thanks for your help.
_________________
I did not fail; I have found 10,000 ways that would not work - Albert Einstein.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jun 27, 2007 2:30 am    Post subject: Reply with quote

i would suggest that you google for REXX forums on the net. there are many,,,
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Wed Jun 27, 2007 5:31 am    Post subject: Reply with quote

When I upload web pages etc. etc. for my wifes website, I use ftp.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
amit4u79
Beginner


Joined: 24 Oct 2005
Posts: 109
Topics: 36
Location: India

PostPosted: Wed Jun 27, 2007 8:54 pm    Post subject: Reply with quote

Hi expat...thanks for your response....yes that is what we are currently doing in our environment. Let me take some time out to explain what is currently being done and what is the enhancement required :

Current processing :
Every 30 mins we have a JCL which executes a REXX exec. The rexx exec creates a report file and then we use an NDM JCL to upload this report file to a certain destination "C:/xx/xx". Now on the open system side, there is a scheduler which runs every 20 mins and fills up the URL page with the information in the report file. This is working fine, but there is delay of 20 mins everytime and if we decrease the scheduler timing, the load to the system increases which is undesirable.

Enhanced processing :
Instead of using the REXX to put the generated report at a certain destination, we are planning to POST the report data in a certain format directly on the URL(HTTP address). This will ensure the URL is populated always with the fresh data. Also, one other way is on the open system(browser) side to have some process by which they know at the instant the file is updated and then post it to the URL. But since I am a mainframe guy do not have much idea, neither has the guy on the other side has any idea as to how to handle this.

Any reference or help is kindly sought after. Thanks again for all your responses/help.

Regards,
- Amit.
_________________
I did not fail; I have found 10,000 ways that would not work - Albert Einstein.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
semigeezer
Supermod


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

PostPosted: Wed Jun 27, 2007 9:30 pm    Post subject: Reply with quote

I'm not sure I understand the difference here between using an HTTP POST request and just uploading the file via FTP since it appears that the report formatting is occurring on the PC in both cases and being sent to the host from there. Running a file checking thread on the PC is extremely inexpensive (and is only a few lines of OORexx). I do that all the time checking every second or half second and it doesn't slow things down at all.

But obviously I am missing something (maybe that the PC is doing no data manipulation, but still it is just used as an easy transfer point...) None the less, you could have the JCL invoke a Unix process (BPXBATCH or similar) to use any of the Unix tools available to you. I think there is an available port of wget which might support POST. Or you could do what you are doing now but also use the ISPF Workstation Agent or something similar like SSH to kick off the FTP at the workstation immediately from the host.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF 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