View previous topic :: View next topic
|
Author |
Message |
R.Kaeferboeck
New User
Joined: 27 Jan 2017 Posts: 5 Location: Austria
|
|
|
|
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 |
|
|
lchui
New User
Joined: 10 Jun 2020 Posts: 7 Location: Canada
|
|
|
|
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 |
|
|
R.Kaeferboeck
New User
Joined: 27 Jan 2017 Posts: 5 Location: Austria
|
|
|
|
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 |
|
|
lchui
New User
Joined: 10 Jun 2020 Posts: 7 Location: Canada
|
|
|
|
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 |
|
|
R.Kaeferboeck
New User
Joined: 27 Jan 2017 Posts: 5 Location: Austria
|
|
|
|
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 |
|
|
lchui
New User
Joined: 10 Jun 2020 Posts: 7 Location: Canada
|
|
|
|
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 |
|
|
Nav_kat24
New User
Joined: 10 Feb 2022 Posts: 2 Location: Europe
|
|
|
|
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 |
|
|
|