View previous topic :: View next topic
|
Author |
Message |
rajesh-amigos Currently Banned New User
Joined: 03 Aug 2007 Posts: 25 Location: India
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
rajesh-amigos Currently Banned New User
Joined: 03 Aug 2007 Posts: 25 Location: India
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
There are some great examples + explanations in Google Groups.
O. |
|
Back to top |
|
|
rajesh-amigos Currently Banned New User
Joined: 03 Aug 2007 Posts: 25 Location: India
|
|
|
|
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 |
|
|
rajesh-amigos Currently Banned New User
Joined: 03 Aug 2007 Posts: 25 Location: India
|
|
|
|
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 |
|
|
|