file-90: Creation of code for field 049 from field 981
- Product: Aleph
- Product Version: 22, 23
- Relevant for Installation Type: Dedicated-Direct, Direct, Local, Total Care
Question
Is it possible to create a field 049 for "Advanced Generic Vendor Records Loader (file-90)" from the text in field 981?
Answer
This can be done by using routine fix_doc_do_file_08.
Example:
Incoming record has field 981$$e4 or 981$$e533. the following translation should be performed:
981$$e4 move to 049$$aABC
981$$e533 move to 049$$XYZ
An according routine was added to xxx01/tab/import/049_fix:
! 2 3 4 5 6 7 8 9
!-!!!!!-!!-!-!!!-!!!-!!!!!-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1 981## COPY-FIELD 998
1 998 DELETE-SUBFIELD a
1 998 DELETE-SUBFIELD b
1 998 DELETE-SUBFIELD d
1 998 DELETE-SUBFIELD f
2 998 REPLACE-STRING $$e4,$$eABC
2 998 REPLACE-STRING $$e533,$$eXYZ
3 998## CHANGE-FIELD 049
3 049 CHANGE-SUBFIELD e,a
The codes (ABC and XYZ) are the relevant mapping and loading codes for the following tables and have to be set there too:
xxx01/tab/tab_mapping
xxx50/tab/tab_loader
xxx50/tab/tab_loader_def
The routine is added the following way in xxx01/tab/tab_fix:
FIL90 fix_doc_do_file_08 049_fix
You may also choose another name for the fix routine. The routine will be activated and can be used after the PC server is restarted.
- Article last edited: 4-July-2016