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: 8696
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 Job completes in JES, but the status ... IBM Tools 1
No new posts File Status 04 COBOL Programming 3
No new posts RABBIT HOLE NEEDED - "Live"... All Other Mainframe Topics 0
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
No new posts File Status Error code 39 when Proces... COBOL Programming 2
Search our Forums:

Back to Top