It's all about the answers!

Ask a question

Create or update an RTC Work Item via MVS / zOS batch job.

Kal Rintala (1112) | asked Jul 26 '15, 10:48 p.m.
edited Jul 28 '15, 3:12 a.m. by Ralph Schoon (60.5k33643)
Hi, We have RTC 5.0.2 and also RTCz  5.0./2  MVS.
We want to create an RTC Work Item by running a batch job on MVS  platform.
Do you have an example  to 
1. update an existing WI  with a comment  or change status?
2. create a new WI.  Just passing basic info. eg. Summary,  Type= Defect  , Tags = aad , Description.

Sample job JCL and an exec to do such  would be greatly appreciated. 
Thank you in advance.


2 answers

permanent link
Ralph Schoon (60.5k33643) | answered Jul 28 '15, 3:10 a.m.
I am not aware of an example for that. You might be able to use REST/OSLC for this. See for more information.

I have created this Java based solution but that requires the Plain Java API and I am not sure if you can run this on the Z.

Kal Rintala commented Aug 05 '15, 9:38 a.m. | edited Sep 30 '15, 7:24 p.m.

Thank you Ralf. I have not tested with Java solution as I do not know Java.
I found a sample REXX exec to run  via PGM=BPXBATCH on MVS.
I am trying to add a comment into an existing RTC via MVS batch job.  The job finds the RTC website and asks for authentication userid/password which get accepted.    However, when it needs to find the  existing Work Item  it fails with    " HTTP/1.1 302 Found  "

What does that mean and how can I resolve it? 
Thank you in advance. kal

Ralph Schoon commented Oct 01 '15, 3:53 a.m.

I have no experience with that REXX script and with your environment so I can't help.

Here the meaning of http 302:

permanent link
Alex Akilov (1211224) | answered Nov 05 '15, 12:40 p.m.
edited Nov 05 '15, 12:40 p.m.
There are various ways to invoke either a Java or Unix shell script from JCL (which can turn around and call Java).  See

Your answer

Register or to post your answer.