CA Librarian FAIRSCAN getting a UserAbend 4039

Document ID : KB000118830
Last Modified Date : 14/11/2018
Show Technical Document Details
Issue:
Our Librarian FAIRSCAN started failing with 4039 abends - 
  USER COMPLETION CODE=4039 REASON CODE=00000000
 
We haven't changed anything in Librarian in the last 2 years, but there were some system changes like z/OS upgrade from 2.2 to 2.3.  
Cause:
The  -SCAN statement is invalid:
                            *** PARM CARD INPUT ***   
                                                      
-SCAN     IRXEVALB                                    
INVALID  PARM TYPE          -SCAN     IRXEVALB        

                                                    

The -SCAN parameter is missing the delimiter at the end of search character string. 
Resolution:
The -SCAN parameter requires an end of search character string delimiter

From the documentation located in FAIRSCAN:
* 6. SCAN PARAMETER   REQUIRED  (UP TO 10 ALLOWED PER RUN) *
*    CC 1-5    "-SCAN"                                     *
*    CC 11-80  DATA TO BE SCANNED FOR.                     *
*              THE '#$#' MUST BE PRESENT.                  *
*                                                          * 
                                            

Add #$# to the end of the -SCAN parameter like this:
-SCAN     IRXEVALB#$#