TAA Tools
DSPCURUSR       DISPLAY CURRENT USER                   TAAJODM

The Display  Current User command  is similar  to the WRKUSRJOB  system
command except  that the current user  of the job is also  shown and no
change  options are  allowed.  This  allows support for  jobs that swap
profiles to be displayed.  Only active jobs are displayed.

See  the  WRKCURUSR  command  for  a  similar  function  that  supports
options to change the displayed jobs.

When  entering the  command,  the  'job user'  name  (the user  profile
assigned  when the  job started)  must be entered  (the default  is the
current user profile).

You must have *JOBCTL  special authority to  request a 'job user'  name
other than your own.

A typical command would be:

            DSPCURUSR      JOBUSER(QUSER) CURUSER(*ALL)

All jobs  that were started  with the  QUSER profile regardless  of the
current user  name that are active would  be displayed.  'Display only'
options are provided for the displayed jobs.

The F16 key  acts as a  toggle switch between displaying  the job  user
or the subsystem name.

DSPCURUSR escape messages you can monitor for
---------------------------------------------

      TAA9895    No jobs exist for the specified user

Escape messages from based on functions will be re-sent.

Command parameters                                    *CMD
------------------

   JOBUSER       Enter the  name of  the 'job  user' that  you want  to
                 display  jobs  for.    The  'job  user'  is  the  user
                 profile  name  that the  job  was started  with.   The
                 default is * meaning the current user profile.

                 A specific user  or *ALL may  be entered.  Using  *ALL
                 causes slower  performance as all active  jobs must be
                 considered.

                 You  must have *JOBCTL special  authority to request a
                 'job user' other than your own or *ALL users.

   CURUSER       Enter the name  of the  'current user'  that you  want
                 to display jobs  for.  The 'current user'  is the user
                 profile  name   that  the  job  is  currently  running
                 under.  The default is  *ALL meaning any current  user
                 profile.

                 A specific user may be entered.

   JOBTYP        The  type of  job  to provide  information  for.   The
                 default is *BOTH for both batch and interactive.

                 *INTERACT  may be entered  to access  only interactive
                 jobs.

                 *BATCH may be entered to access only batch jobs.

   OUTPUT        How  to output the results.   * is the default present
                 an  interactive display  if  the  command  is  entered
                 interactively.

                 If  the  command is  entered  in  batch  or *PRINT  is
                 specified, a spooled file is output.

Restrictions
------------

You  must have *JOBCTL special  authority to request  a user other than
your own.

Prerequisites
-------------

The following TAA Tools must be on your system:

     CHKJOBCTL       Check job control special authority
     FILEFDBCK       File feedback
     RPGSTSDS        RPG status data structure
     SNDESCINF       Send escape information
     SNDESCMSG       Send escape message
     TAAEXC          TAA Execute

Implementation
--------------

None, the tool is ready to use.

Objects used by the tool
------------------------

   Object        Type    Attribute      Src member    Src file
   ------        ----    ---------      ----------    ----------

   DSPCURUSR     *CMD                   TAAJODM       QATTCMD
   TAAJODMC      *PGM       CLP         TAAJODMC      QATTCL
   TAAJODMC2     *PGM       CLP         TAAJODMC2     QATTCL
   TAAJODMR      *PGM       RPG         TAAJODMR      QATTRPG
   TAAJODMD      *FILE      DSPF        TAAJODMD      QATTDDS
					

Added to TAA Productivity tools January 15, 2004


Home Page Up to Top