IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

CICS MVS/ESA web services help


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Susan Talbot

New User


Joined: 17 Dec 2010
Posts: 36
Location: KY

PostPosted: Fri Jul 22, 2011 3:49 am
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jul 22, 2011 4:25 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 22, 2011 4:44 am
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jul 22, 2011 3:11 pm
Reply with quote

Maybe the next link can be usefull :

www.redbooks.ibm.com/abstracts/gg244026.html?Open
Back to top
View user's profile Send private message
Stefan

Active User


Joined: 12 Jan 2006
Posts: 110
Location: Germany

PostPosted: Fri Jul 22, 2011 4:34 pm
Reply with quote

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
View user's profile Send private message
Susan Talbot

New User


Joined: 17 Dec 2010
Posts: 36
Location: KY

PostPosted: Fri Jul 22, 2011 7:54 pm
Reply with quote

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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Jul 22, 2011 8:01 pm
Reply with quote

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
View user's profile Send private message
Susan Talbot

New User


Joined: 17 Dec 2010
Posts: 36
Location: KY

PostPosted: Fri Jul 22, 2011 8:03 pm
Reply with quote

CICS MVS/ESA V4R1
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Jul 22, 2011 8:18 pm
Reply with quote

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
View user's profile Send private message
Susan Talbot

New User


Joined: 17 Dec 2010
Posts: 36
Location: KY

PostPosted: Fri Jul 22, 2011 8:30 pm
Reply with quote

sigh, i am aware of that. not an option at the moment. have to communicate with it. thanks anyway
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 22, 2011 8:38 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Jul 22, 2011 8:46 pm
Reply with quote

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. icon_wink.gif

Regards,

Bill
Back to top
View user's profile Send private message
Susan Talbot

New User


Joined: 17 Dec 2010
Posts: 36
Location: KY

PostPosted: Fri Jul 22, 2011 9:13 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Jul 22, 2011 11:57 pm
Reply with quote

Susan,

I found this link on Book Manager (CICS Web Interface Guide) for CICS/ESA 4.1 -

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHLTL01/CCONTENTS?SHELF=DFHLSH2E&DN=SC33-1892-01&DT=19991004152942

CICS/ESA 4.1 Bookshelf is -

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/DFHLSH2E

Regards,

Bill
Back to top
View user's profile Send private message
Susan Talbot

New User


Joined: 17 Dec 2010
Posts: 36
Location: KY

PostPosted: Sat Jul 23, 2011 12:10 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Jul 23, 2011 12:13 am
Reply with quote

Good luck - this may help prevent boredom over the weekend icon_smile.gif

d
Back to top
View user's profile Send private message
Susan Talbot

New User


Joined: 17 Dec 2010
Posts: 36
Location: KY

PostPosted: Sat Jul 23, 2011 12:36 am
Reply with quote

will let you know
Back to top
View user's profile Send private message
Susan Talbot

New User


Joined: 17 Dec 2010
Posts: 36
Location: KY

PostPosted: Mon Aug 01, 2011 6:57 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Aug 01, 2011 7:24 pm
Reply with quote

Thanks very much for posting the resolution. Might well save others a lot of work.
Back to top
View user's profile Send private message
Susan Talbot

New User


Joined: 17 Dec 2010
Posts: 36
Location: KY

PostPosted: Mon Aug 01, 2011 7:33 pm
Reply with quote

No problem at all
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 01, 2011 8:18 pm
Reply with quote

Good to hear it is working - thank you for letting us know icon_smile.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts How to access web services/website? Mainframe Interview Questions 4
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top