Showing posts with label CA7. Show all posts
Showing posts with label CA7. Show all posts

Sunday, February 19, 2012

FRJOB

FRJOB  display does not include any dates or times for elements in the structure.  This is because the flow is being generated backwards through logical control paths.  Also, the display may include jobs with a schedule ID of zero (000) which indicates it represents any occurrence of the job rather than a specific occurrence of the job.  Once you have determined the origin point(s) for the target job you can use one of the other forecasting commands to retrace a particular control path from the origin point to the target job with dates and times provided.

 FRJOB                                                  DATE 12-02-97                        PAGE 0001
                     REVERSE STRUCTURE FOR CA-7 JOBS                            
  A      B         C                          D        E    F             G                                                                             
HDR  LEV# JOB NAME                 SYSTEM   SID TYPE TRIGGERS /DSNBR  /SCHEDULED   
                  --- AMPA270D............ CABPOST  001                                    
          -001       KMPA275D.......... CMPMER   001 JOB  AMPA270D                      
          -002         KMPA006D........ CMPMER   001 JOB  KMPA275D                      
          -003           KMPA005D...... CMPMER   001 JOB  KMPA006D                      
          -004             KMPA003D.... CMPMER   001 JOB  KMPA005D                      
****    -005            KMPA@CMS.. CMPMER   001 JOB  KMPA003D         :**SCHD**    
                                                                               
SFC1-00 REQUEST COMPLETED AT 12:35:10 ON 97.336     

Item Description

     HDR -  This field will contain asterisks (*) if the  element on that line is considered the origination point.  Otherwise, it will be blank.

     LEV#. - This field will contain the logical level of the element on  that line.  The starting point (target job) is at level zero which is represented by three hyphens (---).  The elements which can trigger  the target job will have a level of negative one (-001).  The elements which can trigger the negative one level will have a level of negative two (-002), and so forth.

     JOBNAME -   This field contains the name of the job or network which triggers an element on the next higher level.  The name is offset to the right for each level up to the sixth level (-006).  This makes it easier to see what level a given element is on. Elements that are  six or more levels deep will all appear starting at the same column as the sixth level.

     SYSTEM NAME -  This field contains the application system name of the job on this line.

     SID (Schedule ID) -   This field contains the schedule ID of the job or  network on this line.  A generic schedule ID of zero (000) may appear in the flow.  Such an entry represents ANY occurrence of the job or network.

      TYPE - This field contains a literal which describes the type of element and trigger the line represents.
      Possible values are:
1      JOB  -  This indicates the element in the Job Name field is a job  which triggers the job in the Triggers field through a job trigger.
2      DSET -  This indicates the element in the Job Name field is a job which updates or creates a data set (DSNBR field) which triggers the job in the Triggers field through a data set  trigger.
3      INWK -  This indicates the element in the Job Name field is an input  network which triggers the job in the Triggers field  through a  network trigger.

    TRIGGERS -   This field contains the name of the job on the next higher level which this element triggers.  For example, the last line of the example above means that job KMPA@CMS (level -005) triggers job KMPA003D on the next higher level (level -004).

    DSNBR -   The DSNBR is only displayed if a data set trigger is involved, otherwise it will be blank.

Friday, February 17, 2012

FJOB

FJOB will list all jobs that will be scheduled during a specific time.  If you want to see what is scheduled on January 2, enter:

FJOB,FROM=0102,SPAN=24:
FJOB,JOB=jobname,FROM=0102,SPAN=24:

FJOB,FROM=0102,SPAN=24
FJOB                                                                                                                                      DATE mm-dd-yy    PAGE 0001
                                                                FORECAST FOR CA-7 JOBS
                PERIOD : 01-02-yy AT 0000 HRS TO 01-02-yy AT 2400 HRS
               
                JOB(S)                    : ALL

                SYSTEM(S)            : ALL

                OPTIONS               : BOTH JOB- AND DSN-TRIGGERED JOBS INCLUDED
                                                   CONNECTED OUTPUT NETWORKS NOT INCLUDED

                HIGHEST JOB DATE AND TIME                                          : YY0002/2103
                HIGHEST JOB NAME                                                            : Last job determined to be scheduled

                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
FJOB,FROM=0102,SPAN=24
FJOB                                                                                                                                      DATE mm-dd-yy    PAGE 0001
                                                                FORECAST FOR CA-7 JOBS
                PERIOD : 01-02-yy AT 0000 HRS TO 01-02-yy AT 2400 HRS

  A                                B                    C                        D          E            F                   G                        H
START DTTM         END DTTM        JOB              SYS         SCHED#   SID        TRIGGERING        JOB/DSN                RQMT

yy002/0100             yy002/0110     KMPA@CMS  CMPMER   SJ00002    001                                                                    
yy002/0110             yy002/0130     KMPA003D     CMPMER                   LEVLE1    001   KMPA@CMS                            
yy002/2100             yy002/2100      KMPA@OMS NMPMERC LEV002    001    KMPA003D                               NOEX     
yy002/2100             yy002/2100      KMPA005D    CMPMERC LEV002    001    KMPA003D                               NOEX     

SFCI-00 REQUEST COMPLETED AT hh:mm:ss ON yy.ddd                                                            

Item Description - Starting on the left side:

  •         START DTTM - (Start Date/Time)   is the day requested to forecast and calculated start time of the job listed under the column JOB
  •         END  DTTM - (End Date/Time)   is the calculated end date and time of the job listed under the column JOB
  •         JOB -  Jobname of  the job(s) scheduled to run with in the date /time requested.
  •         SYS - System(s) associated with  the job(s) listed under the JOB column.
  •         SCHD#  - Schedule Job  Number assigned by CA-7 associated with the job(s) listed under JOB column.
  •          SID - Schedule Id which the job(s) listed under the JOB column.  Each Job schedule contains a schedule id.
  •         TRIGGERING JOB/DSN - Indicates the job or dataset that triggers the job listed in under JOB column.
  •         RQMT -  Identifies NON Executable jobs (NOEX), JCL Override (JCLO), Schedule turned off (OFF), Schedule Skipped (SKP)

Wednesday, February 15, 2012

List the job flow for a scheduled job by CA7

FSTRUC will list the job flow for a scheduled job.  If you want to find out the triggering stream of a scheduled job, enter

FSTRUC,JOB=JOBE,SCHID=001  (FSTRUC,JOB=jobname,SCHID=nnn)  You will see the following:

FSTRUC,JOB=JOBE,SCHID=1
FSTRUC                                                                                                                                 DATE mm-dd-yy    PAGE 0001
                                                                FORECAST FOR CA-7 JOBS
                START TIME          : mm-dd-yy AT hhmm
               
                JOB(S)                    : KMPA@CMS

                SYSTEM(S)            : ALL                        JOBNET(S)            : ALL

                OPTIONS               : BOTH JOB- AND DSN-TRIGGERED JOBS INCLUDED
                                                   CONNECTED OUTPUT NETWORKS NOT INCLUDED

                HIGHEST JOB DATE AND TIME                                          : yyddd/hhmm
                HIGHEST JOB NAME                                                            : Last job determined to be scheduled

                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
FSTRUC,JOB=KMPA@CMS,SCHID=1
FSTRUC                                                                                                                                 DATE mm-dd-yy    PAGE 0001
                                                NETWORK STRUCTURE FOR CA-7 JOBS
                                START TIME          : mm-dd-yy AT hhmm

A                      B                      C          D                      E                      F                      G
LEV#                       JOB NAME             SYS         START DTTM          END DTTM            TRIGGERING        JOB/DSN/SID
--- KMPA@CMS. . . . . . . . . . . . . . . .  CMPMER   yyddd/hhmm           yyddd/hhmm
001     KMPA003D . . . . . . . . . . . . . . CMPMER     yyddd/hhmm         yyddd/hhmm         KMPA@CMS                          :001
002           KMPA@OMS . . . . . . . . .  CMPMER     yyddd/hhmm         yyddd/hhmm         KMPA003D                             :001
003                 KMPARVLTP. . . . . . . CMPMER     yyddd/hhmm         yyddd/hhmm         KMPA@OMS                          :001
002           KMPA005D .. . . . . . . . . .  CMPMER     yyddd/hhmm         yyddd/hhmm         KMPA003D                             :001

SFCI-00 REQUEST COMPLETED AT hh:mm:ss ON yy.ddd            
                                   
Item Description - Starting on the left side:

     LEV#  indicates at which level of the job steam this job is scheduled  (--- is the job requested or lead job, 001 identifies the job(s) directly triggered from the lead job, 002 identifies the jobs directly triggered from the level 001 jobs and so on.)
     JOB NAME  identifies the job(s) in the job stream.
     SYS - System(s) associated with  the job(s) listed under the JOBNAME column.
     START DTTM - (Start Date/Time)   is the day requested to forecast and calculated start time of the job listed under the column JOBNAME.
     END  DTTM - (End Date/Time)   is the calculated end date and time of the job listed under the column JOBNAME.
      TRIGGERING JOB/DSN - Indicates the job or dataset that triggers the job listed in under JOBNAME column.
     SID - Schedule Id which the job(s) listed under the JOBNAME column.  Each Job schedule contains a schedule id.

Monday, February 13, 2012

How to lists the jobs by using CA7

LIST  lists the information on jobs in the request queue that are waiting for a restart.

LIST

LIST                                                                           
                           C A - 7  -  J O B   R E S T A R T                                  PAGE 0001

SJR3-10 RESTART JOB SCAN.                                                       
        A         B        C            D            E                F        G           H                                                                               
 JOBNAME   CA7#   LASTSTEP  COMP ---DUE-OUT--       RC  PROSE#  COMMENTS                 
                                                                               
 QMIA845D   6001   PSTY0010    U0020      97.335/20:49   02    00000000   RSTBL                   
 RMIA845D   8734   PSTY0010    S0000      97.336/01:49   00    00000000   JCLERR RSTBL      
 VMIA845D   8034   PSTY0010    C0064      97.336/01:49   00    00000000   COND-CD                   
           
Item Description

  •        JOBNAME - Name of the job(S) as defined in the database.
  •        CA7# - The reference number assigned by CA-7 to the  job as it entered the Request Queue
  •        LAST STEP - Specifies the name of the last successfully executed step.
  •        COMP - Indicates the completion code the job ended with.
  •        DUE-OUT - Indicates the due-out date and time for this job queue record.
  •        RC - Specifies the current restart count for this job queue record.
  •        PROSE# - Not used - Default zeros
  •        COMMENTS -  Specifies the reason for job failure and indicates if this job is restartable at job or step level.  Values which can appear in the COMMENTS column of LIST output are:
  •       #STEPCC -  Failed step-level condition code test(s) based on #SCC statements included in the JCL.
  •       COND-CD -  Failed job-level condition code test(s) based on Job Screen fields COND-CODE and RO.
  •       JCLERR  -   Terminated due to JCL error.
  •       REQUE  -  Was manually requeued by the user.
  •       RSTBL -  A CA-11 restart step is being inserted by CA-7.
  •  

Saturday, February 11, 2012

LRLOG

LRLOG lists the information on certain events which occur during the CA-7 processing. This information is retained 5 days.    

LRLOG,JOB=jobname
LRLOG,JOB=jobname,DATE=* - This will list the current plus 4 previous calendar days

LRLOG,JOB=KMPA@CMS,DATE=*                                                      
 DATE=*                                                                                                                                   DATE=97.336    PAGE 0001
      A                  B                    C      D     E             F           G        H          I            J          K                                                                       
   EVENT             OBJECT                                                                     ENTRY  TRGR                                    LATE
TYPE  TIME    TYPE NAME             CA7# SCH SYSTEM    STATUS   MODE    CA7#       START      END     
                                                                                
R 97332/1930   J      KMPA@CMS   7727   018   CMPMER   JCLER     SSCN    0000     97332/1930   97332/1930
                                                L        REASON= RESTART NEXT STEP
X 97332/1930   J      KMPA@CMS   7727   018   CMPMER   JCLER     SSCN    0000     97332/1931   97332/1931
                                                         REASON= RESTART FAILED
F 97332/1930   J      KMPA@CMS   7730   018   CMPMER   JCLER     DMND    0000     97332/1933   97332/1933
                                                         REASON= RESTART FAILED
C 97333/1930   J      KMPA@CMS   6667   014   CMPMER   COMP     SSCN    0000     97333/1930   97333/1930
SLIF-00 REQUEST COMPLETED AT 12:43:46 ON 97.336   
     
Item Description

         EVENT - Describes the Type of Event and the Date/Time the event was written to the log.
      C - Completion
      F - Force Complete
      R - Restart
      X - Cancel

    OBJECT  
      TYPE - Describes the type of object that was involved with this event.
      J - Job
      J-  - External Job
      I  Input Network
      O  Output Network
      NAME - Jobname of Network name requested

  •         CA7#  - The reference number assigned by CA-7 to the  job or network as it entered the Request Queue.
  •         SCH -  The CA-7 schedule ID.
  •         SYSTEM -  For job entries, the system name.For network entries, the generated  job name for this                              execution of the network.
  •         STATUS -  The status of the job or network at the time the event occurred.

      COMP  -     Normal Completion
      S nnn   -  Abnormal System Completion (nnn = abend code)
      U nnn   -  Abnormal User   Completion (nnn = completion code)
      Cnnnn  -   Job level condition code.
      #nnnn   -  Step level condition code.
      JCLER  -   JCL Error
      CANCL  -   Cancel
      FCOMP  -   Force Complete
      REQUE  -   Requeued
    FAIL  -  Special job UCC7Rxx failed.
  •         ENTRY MODE - The entry mode of the job or network.

      SSCN  - Schedule scan
      AUTO  -Trigger
      DMND -DEMAND command
      RUN  - RUN command
      LOAD  -LOAD command
      ARFJ  - ARF recovery job
  •          TRGR CA7# - If the object was brought into the system through a trigger, or as an ARF recovery job, this field will  contain the CA-7 job number of the  triggering object.  Otherwise, it will be zero.
  •          START - Starting Date and time.
  •          END -  Completion Date and time.
  •          LATE -   An L at the end of the completion time indicates that the job or network was considered late by CA-7.
  •     For force complete, restart, and cancel events, if a reason was supplied for the action an additional line will be displayed containing the reason text.

Thursday, February 9, 2012

LPRRN

LPRRN lists job prior run information.  This information is of the last successful completion of the job.

LPRRN,JOB=jobname            

LPRRN,JOB=KMPA@CMS                                                                                         
LIST=STATUS JOB=KMPA@CMS                                                                            DATE=97.336    PAGE 0001

    A               B           C                 D               E                    F                  G        H       I          J                                                                               
  JOB               CA-7    DEADLINE         START        DUE-OUT        COMPLETE           CPU       SCH  ENTRY   JOB     
  NAME           JOB#   DDD/HHMM    DDD/HHMM   DDD/HHMM     YYDDD/HHMM SPEC/RUN   ID    MODE   STATUS   
                                                                               
KMPA@CMS 4800    335/2051           335/1930        335/2100           97335/1930     ALL-SYSP  001   SSCN     C-C0000  
                                                                               
SLIF-00 REQUEST COMPLETED AT 12:43:00 ON 97.336                                

Item Description

    JOBNAME - The name of the job as defined in the database
    CA-7 JOB# -  Job number that was assigned by CA-7 on initial queue entry.
    DEADLINE DDD/HHMM -  A calculated time by which this job should have started to have been completed by the due-out time.
    START DDD/HHMM - The time that the job actually started.
    DUE-OUT DDD/HHMM - The original due-out time for this job.
    COMPLETE YYDDD/HHMM - The date and time  this job actually completed.
    CPU SPEC/RUN -  The MAINID specified for this job to be submitted to/and the system that it ran on.
    SCH ID - The schedule ID that this job was brought into the request queue and ran under.
     ENTRY MODE - How the job was brought into the queue.
  •         ARFJ for an ARF job Note:  If ARF detects an exception condition for the job, the last character of this field will have an asterisk as in the following:  DEM*.
  •        AUTO for a TRIGGERed job.
  •        DEMD for a DEMANDed job.
  •        EXTL for a job submitted external to CA-7.
  •        SSCN for a job record brought in by schedule scan. 

A.    JOB STATUS - The highest condition code passed by any step within this job.