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

How Inquire if a resource is in ENQ status


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
hariharan_82

New User


Joined: 18 Apr 2007
Posts: 23
Location: Chennai

PostPosted: Fri Oct 07, 2011 7:13 am
Reply with quote

Hi All,

I have transaction ABCD which invokes program A. I ENQ program A until processing is completed. Incase there is an error with the processing, the erroneous messages are PUT into an MQ.

Now I have another transaction EFGH which would invoke program A if there is any message in the error queue.

I want to invoke transaction EFGH only if program A is NOT enqueued by transaction ABCD. I need to know the syntax for executing INQUIRE ENQ from CICS program. Please help me with the syntax.

Thanks,
Hariharan
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8569
Location: Dubuque, Iowa, USA

PostPosted: Fri Oct 07, 2011 7:29 am
Reply with quote

EXEC CICS INQUIRE ENQ is not found in the CICS Application Programming Reference or Guide manuals. The fact that it is only found in the Systems Programming Reference manual should tell you that (a) the command might not work the way you think it works, and (b) you might not want to use it. Since you obviously have no clue about how the enqueue and dequeue processes work, I strongly recommend you work with your site support staff to identify exactly what you are attempting to accomplish and find the best way to do it. It does not sound like the approach you are taking is very viable.
Back to top
View user's profile Send private message
hariharan_82

New User


Joined: 18 Apr 2007
Posts: 23
Location: Chennai

PostPosted: Fri Oct 07, 2011 7:42 am
Reply with quote

Thanks Robert. Will try and check with my CICS support
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts FILE STATUS - 39 ON VARIABLE LENGTH V... COBOL Programming 2
This topic is locked: you cannot edit posts or make replies. VSE COBOL - File Status 46 when readi... COBOL Programming 8
No new posts Another 39 File Status on VB file COBOL Programming 5
This topic is locked: you cannot edit posts or make replies. IO-PCB status code AL IMS DB/DC 1
No new posts Submit JCL to INTRDR and check the st... COBOL Programming 7
Search our Forums:

Back to Top