- 论坛徽章:
- 0
|
FYI: 如何確保OBJTYPE:*CTLD的狀態為ACTIVE?
如果是要監控LIND的話, 您可自行修改程式碼. 舉Lan Card來說, 可透過RTVCFGSTS去辨別狀態再將其重新activate. 如有bind TCP/IP, 可再加入STRTCP及STRHOSTSVR SERVER(*ALL). 由於Batch Jobs一般皆submit至SBSD BATCH中執行, 所以當Lan Card因線路瞬斷造成LIND status異常, 亦不會影響該CLP程式的運作.
另外, 我嘗試要將DLYJOB的DLY參數以variable代替, 好讓管理者自行決定每一次repeat要delay多久...但都不成功!!
根據online help的說明, DLY的數值最多可輸入數字999999, 所以我declare variable如下:
- PGM PARM(&SEC)
-
- DCL VAR(&SEC) TYPE(*DEC) LEN(6 0)
复制代码
當程式執行時, log會有如下錯誤:
- DLYJOB /* Any parameters not reproduced because of severity of errors. */
- CPD0098 - Decimal value for parameter DLY is not valid.
- CPF0001 - Error found on DLYJOB command.
复制代码
至於CPD0098內容如下:
- Message ID . . . . . . : CPD0098 Severity . . . . . . . : 30
- Message type . . . . . : Diagnostic
- Date sent . . . . . . : 10/22/04 Time sent . . . . . . : 12:09:42
-
- Message . . . . : Decimal value for parameter DLY is not valid.
- Cause . . . . . : A decimal value can only contain the digits 0-9 and have a
- plus or minus sign.
- Recovery . . . : Enter a value that is allowed, or enter one of the special
- values defined for the parameter. More information on parameters and special
- values can be found in the CL Reference manual.
复制代码
甚至將長度如hanyu所說的, 加長為LEN(8 0), 但是情況依舊! 且因此錯誤, 導致系統CPU資源耗損嚴重.
請教: 有解決方法嗎? 還是DLYJOB無法使用variable在CLP中?!
PS: 我試過...將該variable宣告為*CHAR是不行的, log中有說明DLY的參數必須為numeric!! |
|