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
 
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: 8165
Location: East Dubuque, Illinois, USA

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 Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm

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