Technote (troubleshooting)
Problem(Abstract)
Inbound SAP deliveridoc script sid0_sid.scr fails on chk_for_hdr.
Script excerpt:
STEPS
:chk_for_hdr
test EDI_DC = `head -1 $XL_INFNAME | cut -c 1-6`
sid0_sid.old:
1: chk_for_hdr: test EDI_DC = `head -1 .KROG8504010P.000H3H.000020832.000020834 | cut -c 1-6`
Symptom
1: chk_for_hdr: test EDI_DC = `head -1 .KROG8504010P.000H3H.000020832.000020834 | cut -c 1-6`
Cause
On AIX 6.1 head command requires modified invocation.
AIX versions prior to 6.1 head -1
AIX 6.1 head -n 1
Resolving the problem
Edit head command in script sid0_sid.scr:
STEPS
:chk_for_hdr
test EDI_DC = `head -n 1 $XL_INFNAME | cut -c 1-6`
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.