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

ENQ and DEQ macros...


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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
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
Reply with quote

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

Global Moderator


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

PostPosted: Fri Jul 25, 2008 4:19 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. Excel VBA integration with AS400 Macr... All Other Mainframe Topics 1
No new posts ISRE771 error while invoking macros CLIST & REXX 5
No new posts Executing macros to all the members a... TSO/ISPF 1
No new posts Automating the job flows by using the... All Other Mainframe Topics 10
No new posts Loading BMS macros to SDF II CICS 4
Search our Forums:

Back to Top