KB Article #178333

return code 12 on rdjtrunc

Problem

The program RDJTRUNC returns the value 12 after the customization of the standard script RDJEXP provided in the rule engine 1.6.0 and later:

> rdjexp
...
RDJTRUNC : Return = 12
END OF PROCESS RDJEXP
INTERNAL ERROR IN rdjtrunc
Consult /AISuite/RuleEngineFile/runtimes/Exploit/tmp/rdjtrunc.msg



The file rdjtrunc.msg contains the following messages:

- 205300 - ADM -
PARAMETRE 1 : POS DE TRONCATURE
: 00 - TRU - /home/axhudson/MODE64/fic/microfocus/AAI_Trunk_Bench/rdj55/batch/src/c/utl/rdjtrunc.c - 193
************************************************************ ********************
- 205301 - ADM -
PARAMETRE 2 : LG DE TRONCATURE
: 00 - TRU - /home/axhudson/MODE64/fic/microfocus/AAI_Trunk_Bench/rdj55/batch/src/c/utl/rdjtrunc.c - 195



Resolution

Since version 1.6.0, the syntax for rdjtrunc has evolved. There is no longer any need to use redirection for the input and output files.
Then you must adapt all calls to the rdjtrunc program as in the example below:

Replace:
$EXE/rdjtrunc 1 191 <$BRES/ap.Anomaly_IEvent \
>$BRES/Anomaly_IEvent_To_Correct 2>>$TMP/rdjtrunc.msg

By:
"$EXE"/rdjtrunc 1 191 "$BRES"/ap.Anomaly_IEvent "$BRES"/Anomaly_IEvent_To_Correct 2>>"$TMP"/rdjtrunc.msg