Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How can we see the status of the transaction

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
somapradeep1

New User


Joined: 07 Sep 2010
Posts: 22
Location: hyderabad

PostPosted: Sun Oct 23, 2011 10:33 am    Post subject: How can we see the status of the transaction
Reply with quote

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

michael baker

New User


Joined: 11 Oct 2011
Posts: 26
Location: United States of America

PostPosted: Sun Oct 23, 2011 6:26 pm    Post subject: .....
Reply with quote

per manual on the world wide web:

http://publib.boulder.ibm.com/infocenter/cicsts/v3r2/topic/com.ibm.cics.ts.doc/dfha7/transactions/cemt/dfha7mk.html

(as of Sept 2011)

I'm new here too...seems STFM is a good answer to give.

Internet didn't exist when I went to school...at least, not the way it is now (If my memory serves me correctly..Internet was originated by the Military... )
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


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

PostPosted: Sun Oct 23, 2011 6:53 pm    Post subject: Reply to: How can we see the status of the transaction
Reply with quote

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

New User


Joined: 10 Feb 2011
Posts: 9
Location: India

PostPosted: Mon Oct 24, 2011 12:03 am    Post subject: Reply to: How can we see the status of the transaction
Reply with quote

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

Site Director


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

PostPosted: Mon Oct 24, 2011 7:06 am    Post subject:
Reply with quote

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

New User


Joined: 10 Feb 2011
Posts: 9
Location: India

PostPosted: Mon Oct 24, 2011 9:52 am    Post subject: Reply to: How can we see the status of the transaction
Reply with quote

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

Site Director


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

PostPosted: Mon Oct 24, 2011 10:12 am    Post subject:
Reply with quote

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

New User


Joined: 10 Feb 2011
Posts: 9
Location: India

PostPosted: Mon Oct 24, 2011 10:56 am    Post subject: Reply to: How can we see the status of the transaction
Reply with quote

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

Site Director


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

PostPosted: Tue Oct 25, 2011 12:52 am    Post subject:
Reply with quote

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

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

CICS Moderator


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

PostPosted: Tue Oct 25, 2011 1:02 am    Post subject: Reply to: How can we see the status of the transaction
Reply with quote

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

New User


Joined: 10 Feb 2011
Posts: 9
Location: India

PostPosted: Tue Oct 25, 2011 6:01 pm    Post subject: Reply to: How can we see the status of the transaction
Reply with quote

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
View user's profile Send private message
shaqeel.mohds
Warnings : 1

New User


Joined: 06 Jul 2010
Posts: 8
Location: Chennai

PostPosted: Sat Oct 29, 2011 6:20 am    Post subject:
Reply with quote

Only CICS admintrators will have access to CEMT.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Sat Oct 29, 2011 8:28 am    Post subject:
Reply with quote

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

New User


Joined: 10 Feb 2011
Posts: 9
Location: India

PostPosted: Sat Oct 29, 2011 8:54 am    Post subject: Reply to: How can we see the status of the transaction
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Detailed Transaction History report f... Kyle Carroll CICS 5 Tue Oct 18, 2016 12:42 am
No new posts How to calculate an specific transact... lind sh CICS 2 Tue Sep 13, 2016 9:20 pm
No new posts How to resolve IMS DB status code FM Priyanka Boga IMS DB/DC 3 Fri Jun 10, 2016 1:54 pm
No new posts JCL to fetch schedule status from act... parasmalik20 CA Products 1 Thu Jun 02, 2016 7:11 pm
No new posts Start a CDBM transaction whit appropr... lind sh CICS 2 Sun Apr 10, 2016 1:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us