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
 
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 DUMMY When do I need add a DCB parameter Martylin JCL & VSAM 3 Fri Dec 08, 2017 7:20 am
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm

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