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
 

 

How to List all users logged on to a cics region

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
neerajpeddu

New User


Joined: 03 Feb 2006
Posts: 25
Location: Calgary, AB

PostPosted: Tue Apr 13, 2010 10:26 pm    Post subject: How to List all users logged on to a cics region
Reply with quote

Hi there,

Can you please let me know how to list all the users that are currently logged on to a CICS region.

I can find out using a CEMT I TE(*) userid(x*) but then I will have to go to each individual terminal to find out what the userid is. Is there any easy way to get the list of all users currently logged on to cics.

Any help is greatly appreciated. Thanks in advance.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Tue Apr 13, 2010 10:34 pm    Post subject:
Reply with quote

Many sites have written programs to do this -- ours was coded in 1992. Check with your site support group.
Back to top
View user's profile Send private message
neerajpeddu

New User


Joined: 03 Feb 2006
Posts: 25
Location: Calgary, AB

PostPosted: Tue Apr 13, 2010 11:08 pm    Post subject: Reply to: How to List all users logged on to a cics region
Reply with quote

Thanks. I've checked but there does not seem to be any thing similar. Looks like I'll have to write a program myself.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Tue Apr 13, 2010 11:31 pm    Post subject:
Reply with quote

Well, start with the INQUIRE TERMINAL and use Browsing resource definitions to get them all.
Back to top
View user's profile Send private message
neerajpeddu

New User


Joined: 03 Feb 2006
Posts: 25
Location: Calgary, AB

PostPosted: Wed Apr 14, 2010 1:34 am    Post subject: Reply to: How to List all users logged on to a cics region
Reply with quote

Awesome. Thanks a lot. That is a very valuable information. I will use Start and browse resoure definition in my code. found an example in the IBM manual.
Code:
EXEC CICS INQUIRE FILE START END-EXEC.         
PERFORM UNTIL RESPCODE = DFHRESP(END)           
    EXEC CICS INQUIRE FILE(FILENAME) NEXT       
        OPENSTATUS(OPENSTAT)                   
        RECOVSTAT(RCVRSTAT)                     
        FWDRECSTATUS(FWDSTAT)                   
        RESP(RESPCODE) END-EXEC                 
    IF RESPCODE = DFHRESP(NORMAL)               
        IF OPENSTAT = DFHVALUE(OPEN)           
            CALL RCVY-RTN USING RCVRSTAT FWDSTAT
        END-IF                                 
    ELSE CALL ERROR-RTN END-IF                 
END-PERFORM.                                   
EXEC CICS INQUIRE FILE END END-EXEC.           

Thanks again for all your help.
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


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