TAA Tools
CMPSPLFA        COMPARE SPOOLED FILE ATTRIBUTES        TAASPPJ

The  Compare Spooled  File  Attributes  command  compares many  of  the
spooled  file  attributes between  two  spooled files.    A display  or
listing  is output  of any differences  found.  When  two spooled files
differ  in  how  the   output  occurs,  CMPSPLFA  may  be   helpful  in
identifying the differences.

You must have *JOBCTL special authority to use CMPSPLFA.

A typical command would be:

             CMPSPLFA   FROMFILE(aaa) TOFILE(bbb)

The two spooled  files in the current job would be  compared and a list
of attribute differences displayed.

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

    FORMTYPE
    PRIORITY
    COPIES
    MAXRCDS
    FILESEP
    SCHEDULE
    HOLD
    SAVE
    USRDTA
    ACGCDE
    LPI
    CPI
    ALIGN
    DRAWER
    FORMFEED
    PRTQLTY
    CTLCHAR
    PAGRTT
    FONT
    JUSTIFY
    PAGES
    PAGESIZE
    EXPDATE
    REDUCE
    DUPLEX
    PRTTXT
    FIDELITY
    Opening program
    Opening program library

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

    Owner
    Open date/time
    Nbr of copies left to print
    Page being printed
    Spooled file name
    OUTQ
    USRDFNOPT
    USRDFNDTA
    USRDFNOBJ
    LVLCHK
    SHARE
    FRONTMGN
    BACKMGN
    RPLUNPRT
    CHLVAL
    CHRID
    DECFMT
    CDEFNT
    UOM

CMPSPLFA 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.

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

   FROMFILE      The name of the From spooled file.

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

                 A 3  part parameter  with the  first part  as the  job
                 name,  the  second part  as  the  user name,  and  the
                 third part as the job number.

   FROMSPLNBR    The  spooled file  number of the  FROMFILE.   *ONLY is
                 the default.  A specific  number or the special  value
                 *LAST may be entered.

   TOFILE        The name of the To spooled file.

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

                 A  3 part  parameter with  the first  part as  the job
                 name,  the  second  part  as the  user  name,  and the
                 third part as the job number.

   TOSPLNBR      The spooled file number  of the TOFILE.  *ONLY  is the
                 default.    A specific  number  or  the special  value
                 *LAST may be entered.

   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
     CHKSPLF         Check spooled file
     CVTSPLNBR       Convert spooled file number
     EDTVAR          Edit variable
     RSNLSTMSG       Resend last message
     RTVSPLFA        Retrieve spooled file attributes
     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
   ------        ----    ---------      ----------    ----------

   CMPSPLFA      *CMD                   TAASPPJ       QATTCMD
   TAASPPJC      *PGM       CLP         TAASPPJC      QATTCL
   TAASPPJR      *PGM       RPG         TAASPPJR      QATTRPG
					

Added to TAA Productivity tools January 15, 2012


Home Page Up to Top