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

How to List all users logged on to a cics region


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Apr 13, 2010 10:34 pm
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
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: 2146
Location: At my coffee table

PostPosted: Tue Apr 13, 2010 11:31 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts IBM OnDemand Folders displaying to al... IBM Tools 6
Search our Forums:

Back to Top