View previous topic :: View next topic
|
Author |
Message |
Susan Talbot
New User
Joined: 17 Dec 2010 Posts: 36 Location: KY
|
|
|
|
Can anyone tell me where to find a programming guide for doing web services on cics on the old mvs esa? I need to know the commands. I have found plenty of guides explaining the setup but I need to know how to write the programs to retrieve the info off the http request. Thanks |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
I googled for this
Quote: |
programming guide for doing web services on cics on the old mvs esa |
results any use to you? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
At the top of the page is a link to "IBM Manuals" - among which are 3 sets of CICS manuals.
I see no reference to "web" anywhere in the CICS/ESA Language Reference or Programming Guide.
There is info in the CICS TS/OS390 Language Reference and Programming Guide.
From this my guess is that a web interface was not "standard" with cics/esa. The copyright from the manual is:
© Copyright International Business Machines Corporation 1982, 1992. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
Back to top |
|
|
Stefan
Active User
Joined: 12 Jan 2006 Posts: 110 Location: Germany
|
|
|
|
Hi Susan,
you could find examples in the CICS Transaction Server Internet Guide or read Jim Schesvold's "CICS Web Support - Moving Transactions to the Web" or Craig Schneiderwent's "Writing a web-enabled CICS-COBOL program" at this web site.
Hope this helps |
|
Back to top |
|
|
Susan Talbot
New User
Joined: 17 Dec 2010 Posts: 36 Location: KY
|
|
|
|
I tried using the command EXEC CICS WEB EXTRACT and the compiler got the error
DFH7059I E 00039 WEB COMMAND IS NOT VALID AND IS NOT TRANSLATED.
Really? |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Susan Talbot wrote: |
I tried using the command EXEC CICS WEB EXTRACT and the compiler got the error
DFH7059I E 00039 WEB COMMAND IS NOT VALID AND IS NOT TRANSLATED.
Really? |
With what version of CICS are you translating?
Garry. |
|
Back to top |
|
|
Susan Talbot
New User
Joined: 17 Dec 2010 Posts: 36 Location: KY
|
|
|
|
CICS MVS/ESA V4R1 |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Susan Talbot wrote: |
CICS MVS/ESA V4R1 |
I'm not surprised that it doesn't support EXEC CICS WEB commands. That version of CICS is soooo.... far out of support....
You really need to get upgraded to CICSTS.
Garry. |
|
Back to top |
|
|
Susan Talbot
New User
Joined: 17 Dec 2010 Posts: 36 Location: KY
|
|
|
|
sigh, i am aware of that. not an option at the moment. have to communicate with it. thanks anyway |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Susan, you most likely are not going to be able to use web services with that old a release of CICS. Not only are the commands NOT part of the translator, but also the run-time support for them will be lacking. I suspect, but cannot confirm, that the answer to your question is either (1) upgrade to a version of CICS that does support web services, or (2) accept that web services cannot be used with the version of CICS you're talking about and redesign the system to not use web services. If the operating system is reasonably current, you might be able to use the HTTP server to get data to the mainframe, then work out a way to get the data to CICS -- but it all depends upon your system. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Susan,
Jumping from CICS/ESA 4.1 to (for example) CICS/TS 4.1 (as opposed to 3.2) is a large leap.
You'll need to spend a lot of time planning this migration.
The worst jump I've had to do was (recently) CICS/TS 1.3 to CICS/TS 4.1 and that took quite a bit of planning and it turned out that I was hit with a few "opportunities" as well as the installation/use of a 3rd-Party product to support CICS OS/VS COBOL (support was dropped beginning with CICS/TS 3.1), which incidentally, works well.
Try to convince management that they're playing with fire, because if something goes belly-up, IBM will gladly take their check and their good ol' sweet time.
Regards,
Bill |
|
Back to top |
|
|
Susan Talbot
New User
Joined: 17 Dec 2010 Posts: 36 Location: KY
|
|
|
|
i am able to get data to a cics program from an http request. just trying to figure out the commands to get the query string off the request so I can do something with it |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
Back to top |
|
|
Susan Talbot
New User
Joined: 17 Dec 2010 Posts: 36 Location: KY
|
|
|
|
well, i figured it out. i have to LINK to DFHWBENV to get the QUERY_STRING
and then link to DFHWPBA to parse out the key/value pairs
Now, to try it out |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good luck - this may help prevent boredom over the weekend
d |
|
Back to top |
|
|
Susan Talbot
New User
Joined: 17 Dec 2010 Posts: 36 Location: KY
|
|
|
|
will let you know |
|
Back to top |
|
|
Susan Talbot
New User
Joined: 17 Dec 2010 Posts: 36 Location: KY
|
|
|
|
Got it working. You have to decide whether your application will be web-aware or not. I chose web-aware for my testing. This means you don't write a converter, just let the entire http request come into the commarea.
The you have to unstring it on CRLF x'0D25'
You take the form parms from the unstring and pass it into the parser DFHBPA. You have to do this one time for each form parm
To return something to the screen, you have to construct html, move it into the commarea with the length on the html. And there you go.
If you don't want a web-aware program, you can write a converter with DECODE and put the request into the commarea of your program. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Thanks very much for posting the resolution. Might well save others a lot of work. |
|
Back to top |
|
|
Susan Talbot
New User
Joined: 17 Dec 2010 Posts: 36 Location: KY
|
|
|
|
No problem at all |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good to hear it is working - thank you for letting us know
d |
|
Back to top |
|
|
|