Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

What is QueryENQ parameter in ISPEXEC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
rajesh-amigos
Currently Banned

New User


Joined: 03 Aug 2007
Posts: 25
Location: India

PostPosted: Mon Aug 20, 2007 11:31 am    Post subject: What is QueryENQ parameter in ISPEXEC
Reply with quote

Y=Outtrap(Userc.)
"ISPEXEC QUERYENQ QNAME(SYSDSN) RNAME(ttoi.rawatr.exec)"
Y=Outtrap("OFF")

I know this sounds Silly, but I couldnt understand the parameters for QUERYENQ. My requirement is to know if the file is opened in edit mode and by whom.

I tried searching for some good articles on QUERYENQ, but only found its syntax.
If some body can, please do explain me the use of QNAME and RNAME here.
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Aug 20, 2007 3:09 pm    Post subject:
Reply with quote

QUERYENQ is an ISPF service, so you can't use OUTTRAP with it.

As the fine manual says, QUERYENQ creates an ISPF table with info regarding enqueues. It is your responsibility to loop through the rows in this table and process the information.

O.
Back to top
View user's profile Send private message
rajesh-amigos
Currently Banned

New User


Joined: 03 Aug 2007
Posts: 25
Location: India

PostPosted: Mon Aug 20, 2007 3:36 pm    Post subject:
Reply with quote

Hi Ofer,

Thx fro the explanation.
Can you please post a sample Code? It would be very helpful for me, since I am new to Rexx.

Also can you please explain me teh significance of QNAME and RNAME.
Thx a lot.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Aug 20, 2007 4:56 pm    Post subject:
Reply with quote

There are some great examples + explanations in Google Groups.

O.
Back to top
View user's profile Send private message
rajesh-amigos
Currently Banned

New User


Joined: 03 Aug 2007
Posts: 25
Location: India

PostPosted: Tue Aug 21, 2007 1:11 pm    Post subject:
Reply with quote

Hi Ofer,

Thanks a lot for the Link. they were really helpful.

I want to know who all are in the PDS TTOI.userid.EXEC in Edit mode. So I wrote the following:-

"ISPEXEC QUERYENQ QNAME(SPFEDIT) RNAME(var1)
Save(Var4)"

The entry in the PDS var4 is:-
RAWATR QBOS SHARE OWN SYSTEMS GLOBAL SYSDSN
TTOI.RAWATR.EXEC

However, One more user is inside the PDS(not in any member) in edit mode, and this is not getting reflected in the Results.

Also when I have specified the QNAME as SPFEDIT, why is it getting reflected as SYSDSN?

Can somebody help me out here.
Back to top
View user's profile Send private message
rajesh-amigos
Currently Banned

New User


Joined: 03 Aug 2007
Posts: 25
Location: India

PostPosted: Tue Aug 21, 2007 6:53 pm    Post subject:
Reply with quote

Can somebody let me know how to use XSYS in QUERYENQ, using it as XSYS=YES gives me an error.

Also how do i define a member name in RNAME?
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us