p_file_96: `cobrun get_file_format < ${file}`: Ambiguous
- Article Type: General
- Product: Aleph
- Product Version: 18.01
Description:
In version 18, p_file_96 is crashing with an error `cobrun get_file_format < ${file}`: Ambiguous.
You can find a log file at $alephe_scratch/mit01_p_file_96.00066, or I can send it to you if desired. A small sample MARC file is at $data_scratch/uk0725.ord.gfund. This procedure is extremely important to us, as this is how approximately 70% of our orders are created.
Resolution:
The problem was due to extra displays that someone added to get_file_format.cbl (you can see the original file in get_file_format.cbl.keep.exlibris)
The program works correctly now.
From Tami:
The problem was due to extra displays that someone added to get_file_format.cbl (you can see the original file in get_file_format.cbl.keep.exlibris):
display "REC-IN-DOC-NUMBER= " REC-IN-DOC-NUMBER.
display "REC-IN-CODE= " REC-IN-CODE.
display "REC-IN-ALPHA= " REC-IN-ALPHA.
This program displays the format of a given file.
The script of p_file_96 compares the output of this program, and continues accordingly:
if ( `cobrun get_file_format < ${file}` == "MARC" ) then…
When the program displayed more then one string, the compare could not be done.
I ran:
walter-a18(2) >>csh -f $aleph_proc/p_file_96 USM01,jerout,tab_96_def,USM60,USM50,N,N,N,,N > /exlibris/aleph/u18_2/mit01/scratch/p_file_96_log_exlibris
You can see the log in /exlibris/aleph/u18_2/mit01/scratch/p_file_96_log_exlibris:
walter-18(2) MIT01-ALEPH>>grep cobrun p_file_96_log_exlibris
walter-18(2) MIT01-ALEPH>>tail p_file_96_log_exlibris
Load: /exlibris/aleph/u18_2/alephe/unicode/marc8_lat_to_unicode
--------------------------------------------------------------
Load: /exlibris/aleph/u18_2/alephe/tab/tab100
--------------------------------------------------------------
Load: /exlibris/aleph/a18_2/usm01/tab/tab100
Load: /tmp/utf_files/exlibris/aleph/a18_2/usm01/tab/tab01.eng
3 END READING AT 06:43:59
Note : Last BIB doc number (start): 000050090
Note : Last BIB doc number (end) : 000050092
end
- Article last edited: 10/8/2013