Troubleshooting
Problem
The filewatch program that is to check if the file exists or not sometime fail with rc 4 even though the file does not exists. Issue happens intermittently.
Symptom
zCentric job that was run
//JOBREC
JOBCMD(SCRIPT)
JOBUSR(xxxx)
WRKDIR(/TWS/bin/)
//END JOBREC
ls -al /in/
./filewatch -c wdl -f /in/return.dat -dea 1 -trace 3
JOBCMD(SCRIPT)
JOBUSR(xxxx)
WRKDIR(/TWS/bin/)
//END JOBREC
ls -al /in/
./filewatch -c wdl -f /in/return.dat -dea 1 -trace 3
Output of ‘ls -al /in/ ‘ command
/* */
total 49468
drwxrws---. 2 prdadm sapsys 52 Apr 14 11:45 .
drwxrwxrwt. 15 prdadm sapsys 261 Apr 1 19:23 ..
-rw-rw----. 1 prdadm sapsys 10516479 Apr 14 01:36 fmsd020.tmp
-rw-rw----. 1 prdadm sapsys 40134639 Apr 14 06:30 fmsd028.tmp
/* */
total 49468
drwxrws---. 2 prdadm sapsys 52 Apr 14 11:45 .
drwxrwxrwt. 15 prdadm sapsys 261 Apr 1 19:23 ..
-rw-rw----. 1 prdadm sapsys 10516479 Apr 14 01:36 fmsd020.tmp
-rw-rw----. 1 prdadm sapsys 40134639 Apr 14 06:30 fmsd028.tmp
Output from filewatch command
filewatch installation directory = /TWS/
IBM Workload Automation(UNIX)/FWATCH (20220317)
Licensed Materials - Property of IBM* and HCL**
5698-WSH
(C) Copyright IBM Corp. 1998, 2016 All rights reserved.
(C) Copyright HCL Technologies Ltd. 2016, 2022 All rights reserved.
* Trademark of International Business Machines
** Trademark of HCL Technologies Limited
Program code level: 20220317
Installed for user "xxxxx".
Locale LANG set to the following: "en"
Licensed Materials - Property of IBM* and HCL**
5698-WSH
(C) Copyright IBM Corp. 1998, 2016 All rights reserved.
(C) Copyright HCL Technologies Ltd. 2016, 2022 All rights reserved.
* Trademark of International Business Machines
** Trademark of HCL Technologies Limited
Program code level: 20220317
Installed for user "xxxxx".
Locale LANG set to the following: "en"
MSG: Action is: (4)
MSG: Keyword:(?) Value((null))
MSG: Keyword:(CONDITION) Value(wdl)
MSG: Keyword:(FILENAME) Value(/in/return.dat)
MSG: Keyword:(DATABASE) Value()
MSG: Keyword:(INTERVAL) Value(60)
MSG: Keyword:(DEADLINE) Value(1)
MSG: Keyword:(RETURNCODE) Value(4)
MSG: Keyword:(TRACE) Value(3)
MSG: final values:
MSG: filename is: (/in/return.dat)
MSG: database is: (filewatchdb)
MSG: interval is: (60)
MSG: deadline is: (1)
MSG: return code is: (4)
MSG: trace level is: (3)
MSG: database used is: filewatchdb
MSG: waiting for deleting of file: /in/return.dat
**************************************************************************
MSG: waitFileDeleted
MSG: started at: Fri Apr 14 22:01:10 2023
MSG: ended at: Fri Apr 14 22:01:11 2023
MSG: elapsed time: 1 seconds
MSG: deadline reached
MSG: filewatch is exiting with return code 4
**************************************************************************
MSG: Keyword:(?) Value((null))
MSG: Keyword:(CONDITION) Value(wdl)
MSG: Keyword:(FILENAME) Value(/in/return.dat)
MSG: Keyword:(DATABASE) Value()
MSG: Keyword:(INTERVAL) Value(60)
MSG: Keyword:(DEADLINE) Value(1)
MSG: Keyword:(RETURNCODE) Value(4)
MSG: Keyword:(TRACE) Value(3)
MSG: final values:
MSG: filename is: (/in/return.dat)
MSG: database is: (filewatchdb)
MSG: interval is: (60)
MSG: deadline is: (1)
MSG: return code is: (4)
MSG: trace level is: (3)
MSG: database used is: filewatchdb
MSG: waiting for deleting of file: /in/return.dat
**************************************************************************
MSG: waitFileDeleted
MSG: started at: Fri Apr 14 22:01:10 2023
MSG: ended at: Fri Apr 14 22:01:11 2023
MSG: elapsed time: 1 seconds
MSG: deadline reached
MSG: filewatch is exiting with return code 4
**************************************************************************
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSGSPN","label":"IBM Workload Scheduler"},"ARM Category":[{"code":"a8m0z0000001ic2AAA","label":"ZOS-\u003EIZWS-\u003EZcentric-\u003EPLUGIN JOBTYPE"}],"ARM Case Number":"TS012756953","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"10.1.0;9.5.0"}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Was this topic helpful?
Document Information
Modified date:
29 May 2023
UID
ibm16999203