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

What is QueryENQ parameter in ISPEXEC


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 2358
Location: Israel

PostPosted: Mon Aug 20, 2007 3:09 pm
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
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: 2358
Location: Israel

PostPosted: Mon Aug 20, 2007 4:56 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top