MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HOW TO USE ENQ and DEQ

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
midnighthunger
Beginner


Joined: 21 Dec 2005
Posts: 2
Topics: 1

PostPosted: Wed Dec 21, 2005 1:32 am    Post subject: HOW TO USE ENQ and DEQ Reply with quote

HI


I have a doubt in using this ENQS and DEQS , what is its specific use

please give me with a sample piece of code


Regards
_________________
WITH SmileS MIDNIGHTHUNGER
Back to top
View user's profile Send private message Yahoo Messenger
Maximus
Beginner


Joined: 17 Nov 2005
Posts: 21
Topics: 11

PostPosted: Wed Dec 21, 2005 1:48 am    Post subject: Reply with quote

Midnight Hunger,
ENQ gains exclusive control over the queues while the DEQ gives out the control holding on that queue.

Mainly used in multiuser environment.

- Maximus

******
Do some research before posting....
Back to top
View user's profile Send private message
Maximus
Beginner


Joined: 17 Nov 2005
Posts: 21
Topics: 11

PostPosted: Wed Dec 21, 2005 2:05 am    Post subject: Reply with quote

HI maximus


The hardest thing for the gladiator is find code pieces not concept , please help me in this regard
Back to top
View user's profile Send private message
midnighthunger
Beginner


Joined: 21 Dec 2005
Posts: 2
Topics: 1

PostPosted: Wed Dec 21, 2005 2:16 am    Post subject: Reply with quote

hi maximus


what is this??? I cant get ,I am confused what do you mean to say
_________________
WITH SmileS MIDNIGHTHUNGER
Back to top
View user's profile Send private message Yahoo Messenger
haree_amrid
Beginner


Joined: 21 Dec 2005
Posts: 9
Topics: 3
Location: INDIA

PostPosted: Wed Dec 21, 2005 9:53 am    Post subject: Reply with quote

Hi,
ENQ command is to gain the exclusive control of the resources(like queues, files etc), the resources which we want to get exclusive control should be mentioned in the ENQ statement.
EXEC CICS ENQ
RESOURCE(RESOURCE-NAME)
END-EXEC.

Similarly DEQ will remove the exclusive control over the resources.
EXEC CICS DEQ
RESOURCE(RESOURCE-NAME)
END-EXEC.
_________________
With Regards,
Hareesh Amrideswaran
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Dec 22, 2005 1:00 am    Post subject: Reply with quote

midnighthunger,

Check the following links which explains more about ENQs and DEQs.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHP4A04/1.68?DT=20050113150738
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dfhp3a04/3.4.4.6?ACTION=MATCHES&REQUEST=ENQ&TYPE=FUZZY&SHELF=&DT=20050112153951&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT

Hope this helps,

Cheers,
Phantom
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Thu Dec 22, 2005 1:41 am    Post subject: Reply with quote

See if this helps -

http://www.mvsforums.com/helpboards/viewtopic.php?t=89
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group