CA Librarian FAIRSCAN getting a UserAbend 4039
search cancel

CA Librarian FAIRSCAN getting a UserAbend 4039

book

Article ID: 118830

calendar_today

Updated On:

Products

Librarian

Issue/Introduction

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.  

Environment

Release:
Component: LIBR

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#$#