TAA Tools
CMPJOBA         COMPARE JOB ATTRIBUTES                 TAAJOFU

The  Compare Job  Attributes  command compares  the  attributes of  two
jobs.  A  display or listing is output of  any differences found.  When
two  jobs  differ  in  how  they operate,  CMPJOBA  may  be  helpful in
identifying why they differ.

You must have *JOBCTL special authority to use CMPJOBA.

For the best  results, compare jobs  that are in  the same status  such
as both  are on  a job queue,  both are active,  or both  have finished
and  are on  an output  queue.  In  addition, comparing  an interactive
job to  a batch  job will  produce some  misleading  differences.   The
system  does not  return  some  of the  values  that  will be  compared
depending  on the status  of the job.   For example,  if an interactive
job is compared  to a  batch job,  the batch  job will  describe a  job
queue  while  the   interactive  job  does  not  and   some  misleading
differences will occur.

A typical command would be:

             CMPJOBA    FROMJOB(aaa/bbb/ccc) TOJOB(xxx/www/yyy)

The  attributes of  the two jobs  would be  compared.   Any differences
would be displayed.

Attributes compared
-------------------

    ACGCDE
    ACTSTS
    ALWMLTTHD
    BRKMSG
    CCSID
    CNTRYID
    CURLIB
    CURUSER
    DATFMT
    DATSEP
    DDMCNV
    DECFMT
    DEVRCYACN
    DFTWAIT
    ENDSEV
    FUNCTION
    FUNCTION NAME
    FUNCTION NAME
    INQMSGRPY
    JOBD
    JOBDLIB

    JOBMSGQFL
    JOBMSGQMX
    JOBPTY
    JOBQ
    JOBQLIB
    JOBQPTY
    JOBQSTS
    JOBSTS
    JOBSWS
    JOBTYP
    LANGID
    LOGCLPGM
    LOGLVL
    LOGOUTPUT
    LOGSEV
    LOGTYPE
    OUTPTY
    OUTQ
    OUTQLIB
    POOLID
    PRDLIB
    PRTDEV
    PRTKEYFMT
    PRTTXT
    PURGE
    SBMMSGQ
    SBMMSGQLIB
    SBMUSER
    SBS
    SBSLIB
    SCDATE
    SCDTIME
    SPCENV
    SPLFACN
    SRTSEQ
    SRTSEQLIB
    STSMSG
    SYSLIBL
    TIMESEP
    TIMESLICE
    USRLIBL

Major attributes not compared
-----------------------------

    CHRIDCTL
    CPYENVVAR
    DATE
    DSPSBMJOB
    DUPJOBOPT
    INLASPGRP
    RTGDTA
    RQSDTA
    SBMFOR
    TSEPOOL
    USER

CMPJOBA escape messages you can monitor for
-------------------------------------------

      TAA9891    Differences exist (if a spooled file is output)

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

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

   FROMJOB       The  qualified  name  of  the  From  job.    *  is the
                 default meaning the current job.

                 If  the  default  is   not  used,  the  full   3  part
                 parameter  must be  entered for  job name,  user name,
                 and job number.

   TOJOB         The  qualified name of the  To job.  *  is the default
                 meaning the current job.

                 If  the  default  is  not   used,  the  full  3   part
                 parameter must  be entered  for job  name, user  name,
                 and job number.

   OUTPUT        How  to  output the  results.   *  is  the  default to
                 display the  spooled file  if the  command is  entered
                 interactively.  The  spooled file is deleted  after it
                 is displayed.

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

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

Not all attributes are compared.

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

The following TAA Tools must be on your system:

     CHKJOBCTL       Check *JOBCTL special authority
     EDTVAR          Edit variable
     RSNLSTMSG       Resend last message
     RTVJOBA2        Retrieve job attributes 2
     RTVSYSVAL3      Retrieve system value 3
     SNDCOMPMSG      Send completion message
     SNDESCINF       Send escape information
     SNDESCMSG       Send escape message

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

None, the tool is ready to use.

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

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

   CMPJOBA       *CMD                   TAAJOFU       QATTCMD
   TAAJOFUC      *PGM       CLP         TAAJOFUC      QATTCL
   TAAJOFUR      *PGM       RPG         TAAJOFUR      QATTRPG
					

Added to TAA Productivity tools January 15, 2012


Home Page Up to Top