If the job log files has a error code/regex pattern matching then job status should be Error and set a Parameter with Error code.
Else no error code/ regex pattern matching then job should be completed and Parameter should be empty/blank.
Preparation / Requirements
RMJ/RMF version 9.2.9 and above
1. You need to set the File search at Step1 level as shown in the below screenshot
2. You can set the output definition parameter, for indicating if the file search was run successfully.
Like, I have done as ERROR and out param test message.
3. On successful file search the job got set to Error status and the ERROR parameter got set.
On file search failure the job got set to Completed status and ERROR parameter does not got set.