View previous topic :: View next topic
|
Author |
Message |
somapradeep1
New User
Joined: 07 Sep 2010 Posts: 22 Location: hyderabad
|
|
|
|
i started the transaction px15, it onvokes another transaction px99 with start command
Exec cics start
trans(PX99)
from(ws-data)
length(length of ws-data)
queue('phpp0001')
reqid('php1')
end-exec
exec cics retrieve
into(ws-data)
length(length of ws-data)
end-exec
how can i check the status of the PX99 transaction?
Please advice me.... |
|
Back to top |
|
|
michael baker
New User
Joined: 11 Oct 2011 Posts: 26 Location: United States of America
|
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Are you looking for the task status assigned to this started PX99 transaction or the overall status (health check) of transaction PX99 itself?
The previous post will give you the status of the actual PX99 transaction-id (via CEMT), but not the status of a task assigned to a given/individual PX99.
In other words, if the task-number assigned to your posted START of PX99 was 1234, do you need to know the status of task 1234?
More information is needed.
BTW, your RETRIEVE will raise an ERROR (most likely, ENVDEFERR) because you've omitted the QUEUE keyword, which you specified in the START and TRANS needs to be spelled-out as TRANSID in the START (unless you were prototyping these API's using CECI, where abbreviations can be used).
Mr. Bill |
|
Back to top |
|
|
krishna rao M
New User
Joined: 10 Feb 2011 Posts: 9 Location: India
|
|
|
|
I am also having the same trouble, i don't have authorization to use CEMT comand in my proj, I want to see the status of the second transaction(as per example RX99).
Is there any chance to check the status of the RX99 by using CECI or LOG messages or entering Same terminal id/task/queue in application program(both start and retrieve programs). If there any chance Please suggest me. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You both may need to simply work with your cics support. . . They should have all of the keys to the cics kingdom.
Many organizations restrict the use of lots of cics transactions, so the only way to have them used is with the cics support.
Most developers find a way to diagnose problems without using the restricted transactions. If you explain what problem you are trying to deal with, someone may have a suggestion. |
|
Back to top |
|
|
krishna rao M
New User
Joined: 10 Feb 2011 Posts: 9 Location: India
|
|
|
|
Hi,
I have the authorization to use both the transactions(i mean to run the transaction). But, the second transaction is involved the process of updating the tables in database, it is failing in updating, i hope it is abending with some sql error.
To check the error status of the current transaction , i am using the following code:
move sqlcode to ws-error
EXEC CICS
ABEND ABCODE(ws-error)
END-EXEC
Even both the transactions have above code, but i am only able to check only the status of the first transaction.
I don't have the authorization to use any options in CEMT. I have authorization to use CECI only.
so, Where can i check the error status of the second transaction which is invoked by the first transaction with start command.
Please suggest me. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
I don't know how to check the status of the second transaction, but if it is your code, you might put a bit of diagnostic code in the second program to show what is happening. Then remove it when the problem is resolved.
Hopefully, the problem can be caused in the development/test environment. . . |
|
Back to top |
|
|
krishna rao M
New User
Joined: 10 Feb 2011 Posts: 9 Location: India
|
|
|
|
Hi,
yes, I am working in development.I tried to code only the following code to check status, but second transaction is not showing any message related to to the second transaction in current terminal.
move sqlcode to ws-error
EXEC CICS
ABEND ABCODE(ws-error)
END-EXEC
EXEC CICS
RETURN
END-EXEC
Is ther any other alternative to code in program?
or
Is there any chance to mention current terminal information in Retrieve and start(i already coded terminal id here) so that any hope to see the notification of the second transaction? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Is ther any other alternative to code in program? |
As you are working in the development environment and should be able to compile/newcopy whenever you want, why do you not want to put in a bit of code to show what is going on?
If you haven't asked your cics support to help, why not. . .
Is there an online debugging tool in use on the system (i.e. Xpediter)?
Is it possible that the module being called is the wrong load module? |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Because you're not assigning the PX99 Transid to a terminal, before invoking the task that issues the start of PX99, enter (from a clear screen) -
CEDX PX99
When PX99 is invoked, you'll be able to step through it (CICS commands only) and check its execution status.
If this is Production, then you probably don't have authority.
However, if this is non-production, the CICS version/release must be (at a minimum) CICS/ESA 4.1, which was introduced 12-14 years ago, where CEDX was first included.
Mr. Bill |
|
Back to top |
|
|
krishna rao M
New User
Joined: 10 Feb 2011 Posts: 9 Location: India
|
|
|
|
Hi,
Thanks for both Mr. Bill and Mr. dick scherrer for valuable information, CEDX is working.
Dick scherrer, I have Debug tool DTCN and other panel to give new copy(i don't have CEMT authorization). I think, i can only debug current transaction only. Is there any option either in Xpediter or DTCN to debug both the transactions(the second transaction is invoked by the first transaction with start command). |
|
Back to top |
|
|
shaqeel.mohds Warnings : 1 New User
Joined: 06 Jul 2010 Posts: 8 Location: Chennai
|
|
|
|
Only CICS admintrators will have access to CEMT. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Mohammed Shoaib, a blanket statement such as you made is rarely correct. Many sites allow programmers access to the CEMT transaction in test regions so they can compile / newcopy / execute their programs repeatedly. At these sites, you cannot say
Quote: |
Only CICS admintrators will have access to CEMT. |
|
|
Back to top |
|
|
krishna rao M
New User
Joined: 10 Feb 2011 Posts: 9 Location: India
|
|
|
|
Bill, whatever you told is correct, CEDX is not allowing me to debug because these transactions are global(prod N test).
Good news, I passed same terminal id, so i can able to Debug both trans in my debug tool.
Thanks all. |
|
Back to top |
|
|
|