Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
ENQ and DEQ macros...

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
girishms

New User


Joined: 06 Jun 2008
Posts: 21
Location: chennai

PostPosted: Thu Jul 24, 2008 5:59 pm    Post subject: ENQ and DEQ macros...
Reply with quote

Hi all...

Has anybody worked on ENQ and DEQ macros in assembler???


If so please guide me....


Thanks,
Girish
Back to top
View user's profile Send private message

Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Jul 24, 2008 6:43 pm    Post subject:
Reply with quote

ENQ uses a QNAME,RNAME pair of values to serialize access to a shared resource, so everyone must use the same values to protect the same resource. The scope of the ENQ is also important (STEP, SYSTEM, SYSTEMS) as well as shared vs. exclusive.

You can test the availability of an ENQ, attempt ENQ with error returned if unavailable, or wait unconditionally for an ENQ.

For example, ISPF EDIT uses QNAME=SPFEDIT and RNAME=data.set.name[and.member?] , scope SYSTEMS and exclusive.

The MVS Assembler Services Reference manual describes the macros and has simple examples.
Back to top
View user's profile Send private message
girishms

New User


Joined: 06 Jun 2008
Posts: 21
Location: chennai

PostPosted: Thu Jul 24, 2008 7:13 pm    Post subject:
Reply with quote

Thanks a lot !!!!
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Fri Jul 25, 2008 4:19 am    Post subject: Reply to: ENQ and DEQ macros...
Reply with quote

Bill,

that was a great little post.

they still have RAGBRAI every year about this time?
I did it from 1986 thru 92.
I am safe now, the wife is gone and I am in europe.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Fri Jul 25, 2008 6:53 pm    Post subject:
Reply with quote

Dick,
RAGBRAI is running this week! I'm not a rider but they seem to have a good time. Someone spread tacks on the road this year and caused a bunch of flats. icon_cry.gif Follow the action HERE
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing macros to all the members a... sakrat TSO/ISPF 1 Sun Apr 06, 2014 11:54 am
No new posts Automating the job flows by using the... chandrupegasus All Other Mainframe Topics 10 Mon Jul 01, 2013 3:48 pm
No new posts Loading BMS macros to SDF II Graham Hobbs CICS 4 Sun Mar 04, 2012 11:49 pm
No new posts Facing problem in call from CICS to ... anjuraj PL/I & Assembler 1 Fri Feb 18, 2011 4:59 pm
No new posts Using ENQ and DEQ macros PHILIP MANGANO JCL & VSAM 1 Tue Jan 25, 2011 6:44 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us