FT job strange behavior

book

Article ID: 211847

calendar_today

Updated On:

Products

CA Workload Automation AE

Issue/Introduction

FT job has defined to check for the file in one location but on 22/03/2021 FT job look for the file in different location with out any changes to the job.

See the below difference.

Job definition (original):


/* ----------------- AVD_PSFIN0140_MFT_JPMC_INBD_FW ----------------- */

insert_job: AVD_PSFIN0140_MFT_JPMC_INBD_FW   job_type: FT
machine: xxxxxx
owner: xxxxxx
permission:
date_conditions: 1
days_of_week: mo,tu,we,th,fr
exclude_calendar: BANK_HOLIDAYS_PLUS_1DAY
start_times: "10:00"
condition: (v(AVD_PSAPM_WEEKLY_MAINT) = "DONE")
description: "FW job to wait for creation of incoming XXXXXX"
term_run_time: 60
alarm_if_fail: 0
alarm_if_terminated: 0
timezone: EST5
send_notification: F
notification_msg: "A job has failed."
resources: (AVD_PSAPD_QUANT,QUANTITY=1,FREE=A)
watch_file: "/sap_ftp/PRD/ib/MQFTE/inbox/ABBOTT1.CHKPD.chkpd3*.txt"
watch_file_recursive: 1
watch_file_type: CREATE
watch_no_change: 1
continuous: 0
watch_file_change_type: "SIZE"

On 22/03, the job has looked up the file in "/sap_ftp/PRD/ib/MQFTE/inbox/temp/ location which is not correct. Please check the strange behavior of the FT job?

 

Job Name                                                         Last Start           Last End             ST/Ex Run/Ntry Pri/Xit
________________________________________________________________ ____________________ ____________________ _____ ________ _______
AVD_PSFIN0140_MFT_JPMC_INBD_FW                                   03/23/2021 10:00:02  03/23/2021 10:00:32  SU    355261383/1 0

  Status/[Event]  Time                 Ntry ES  ProcessTime           Machine
  --------------  --------------------- --  --  --------------------- ----------------------------------------
  STARTING        03/23/2021 10:00:01    1  PD  03/23/2021 10:00:02   XXXXXXXXX
  RUNNING         03/23/2021 10:00:02    1  PD  03/23/2021 10:00:09   XXXXXXXXX
    <Monitored for CREATE>
  SUCCESS         03/23/2021 10:00:32    1  PD  03/23/2021 10:00:33   XXXXXXXXX
    <File Created, NoChange 1 min. Filename("/sap_ftp/PRD/ib/MQFTE/inbox/ABBOTT1.CHKPD.chkpd3.5082342.20210323033929195.txt")>
  [CHK_TERM_RUNTIME]  03/23/2021 11:00:02    1  PD  03/23/2021 10:00:32
  [STARTJOB]      03/24/2021 10:00:00    0  PD  03/24/2021 10:00:00
    <Event was scheduled based on job definition.>

 >> autorep -j AVD_PSFIN0140_MFT_JPMC_INBD_FW  -d -r -5

Job Name                                                         Last Start           Last End             ST/Ex Run/Ntry Pri/Xit
________________________________________________________________ ____________________ ____________________ _____ ________ _______
AVD_PSFIN0140_MFT_JPMC_INBD_FW                                   03/22/2021 10:00:03  03/22/2021 10:00:33  SU    355132483/1 0

  Status/[Event]  Time                 Ntry ES  ProcessTime           Machine
  --------------  --------------------- --  --  --------------------- ----------------------------------------
  STARTING        03/22/2021 10:00:01    1  PD  03/22/2021 10:00:02   XXXXXXXXXX
  RUNNING         03/22/2021 10:00:03    1  PD  03/22/2021 10:00:10   XXXXXXXXXX
    <Monitored for CREATE>
  SUCCESS         03/22/2021 10:00:33    1  PD  03/22/2021 10:00:33   XXXXXXXXXX
    <File Created, NoChange 1 min. Filename("/sap_ftp/PRD/ib/MQFTE/inbox/temp/ABBOTT1.CHKPD.chkpd3.1063942.20210205033116888.txt")>
  [CHK_TERM_RUNTIME]  03/22/2021 11:00:03    1  PD  03/22/2021 10:00:33
  [STARTJOB]      03/23/2021 10:00:00    0  PD  03/23/2021 10:00:01
    <Event was scheduled based on job definition.>

 

Environment

Release : 12.0

Component : AutoSys Workload Automation

Resolution

In the FT job definition, watch_file_recursive is specified as 1.

Therefore the job monitors files under the specified directory and all its sub-directories.

https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/autosys-workload-automation/12-0/reference/ae-job-information-language/jil-job-definitions/watch-file-recursive-attribute-specify-whether-to-monitor-subdirectories-for-file-activity.html