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

The z/OS HTTP/HTTPS protocol


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
R.Kaeferboeck

New User


Joined: 27 Jan 2017
Posts: 5
Location: Austria

PostPosted: Wed Nov 10, 2021 5:51 pm
Reply with quote

Hi,
currently we are sending http-Requests via DB2's Stored Procedures (HTTPPOST, e...) as shown here for example:
Code:

...
EXEC SQL
SELECT
  DB2XML.HTTPPOSTBLOB(
    :URI,
    :httpHeader_CLOB,
    :input_lob)
  INTO
    :output_lob
  FROM
    SYSIBM.SYSDUMMY1;

IF SQLCA.SQLCODE ^= 0 THEN ...


This has the advantage that it works for CICS and BATCH without changing the sourcecode but our DB/2 admins are not quite happy with this solution.

So we are searching for a something (a library?) that can be used in PL/I for BATCH and CICS because we don't want to develop two versions (one for CICS, one for BATCH) for the same task.
The z/OS HTTP/HTTPS protocol enabler looked good at first but then we realized that it is only suitable for Batch-programs.

Is there anything you could recommend?

Regards,
Reinhard
Back to top
View user's profile Send private message
lchui

New User


Joined: 10 Jun 2020
Posts: 7
Location: Canada

PostPosted: Fri Dec 03, 2021 2:07 am
Reply with quote

hi,

We don't know of any library that would work in both batch and CICS (with usual QR TCB) but scheduling a transaction using the z/OS http enabler on an open TCB (rather than the usual QR TCB) will work.

Hope this helps.
Back to top
View user's profile Send private message
R.Kaeferboeck

New User


Joined: 27 Jan 2017
Posts: 5
Location: Austria

PostPosted: Wed Jan 05, 2022 6:46 pm
Reply with quote

Hi - thank you for your response!

Quote:
We don't know of any library that would work in both batch and CICS (with usual QR TCB) but scheduling a transaction using the z/OS http enabler on an open TCB (rather than the usual QR TCB) will work.


Took quite a while to give it a try, unfortunately it's still not working :-(

I can call HWTHINIT now to get a handle, but when I call NWTHCONN the program crashes with abend code 4094

Regards,
Reinhard
Back to top
View user's profile Send private message
lchui

New User


Joined: 10 Jun 2020
Posts: 7
Location: Canada

PostPosted: Thu Jan 06, 2022 12:24 am
Reply with quote

R.Kaeferboeck wrote:
Hi - thank you for your response!

Took quite a while to give it a try, unfortunately it's still not working :-(

I can call HWTHINIT now to get a handle, but when I call NWTHCONN the program crashes with abend code 4094

Regards,
Reinhard



Is there a reason code with the abend one? Possibly the POSIX(ON) runtime option is needed.

Happy New Year!
Back to top
View user's profile Send private message
R.Kaeferboeck

New User


Joined: 27 Jan 2017
Posts: 5
Location: Austria

PostPosted: Fri Jan 07, 2022 3:03 pm
Reply with quote

Hi,
yes - I do set the POSIX(ON) runtime option:
Code:
DCL PLIXOPT CHAR(60) VAR EXT STATIC INIT('HEAP(64K,64K,ANYWHERE,KEEP,8K,4K),XPLINK(ON),POSIX(ON)'E);


Without POSIX(ON) the call to HWTHCONN returns HWTH_ENVIRONMENTAL_ERROR and Reason Text says "The required POSIX(ON) run-time option is not set."

With POSIX(ON) in PLIXOPT I get the mentioned ABEND 4094 with ReasonCode 18
Code:
------   ----------------- 4094 (LE/370 TERMINATION FAILED) at HWTHSNDX.1977 ->
001972    Dcl DiagArea  Type HWTH_DIAGAREA_TYPE;                               
001973    Dcl ErrorMsg  Char(128);                                             
001974                                                                         
001975    Rc = HWTH_OK;                                                       
=====>    Call HWTHCONN( Rc,HandleIn,DiagArea );                               


The previous calls to HWTHINIT and HWTHSET to get the commication-handle all work without a problem.

Regards,
Reinhard
Back to top
View user's profile Send private message
lchui

New User


Joined: 10 Jun 2020
Posts: 7
Location: Canada

PostPosted: Wed Jan 12, 2022 4:24 am
Reply with quote

hi,

At this point it's best you open a case to have this properly investigated.

Please use this URL:
www.ibm.com/mysupport/s/createrecord/NewCase

and open the case against this product:
z/OS WEB Enablement toolkit <5752SCHWT>


Thanks,
Back to top
View user's profile Send private message
Nav_kat24

New User


Joined: 10 Feb 2022
Posts: 2
Location: Europe

PostPosted: Thu Feb 10, 2022 11:32 am
Reply with quote

R.Kaeferboeck wrote:
Hi,
currently we are sending http-Requests via DB2's Stored Procedures (HTTPPOST, e...) as shown here for example:
[code]


This has the advantage that it works for CICS and BATCH without changing the sourcecode but our DB/2 admins are not quite happy with this solution.



Regards,
Reinhard


Hi Reinhard,

So are you saying that z/OS client web enablement toolkit can work in CICS ? If yes how are you managing POSIX(ON) in CICS region. ? By default CICS ignores POSIX(ON).
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Anyone using the HTTP server, web app... All Other Mainframe Topics 0
No new posts IBM HTTP web server - redirect http t... All Other Mainframe Topics 5
No new posts Execute Http from Z/OS through rexx CLIST & REXX 6
No new posts Peoplesoft to CICS Web Services with ... CICS 0
Search our Forums:

Back to Top