IBM Support

Inbound SAP deliveridoc script sid0_sid.scr fails on chk_for_hdr. - Sterling Gentran:Server for UNIX

Technote (troubleshooting)


Problem(Abstract)

Inbound SAP deliveridoc script sid0_sid.scr fails on chk_for_hdr step

Script excerpt:
STEPS
:chk_for_hdr
test EDI_DC = `head -1 $XL_INFNAME | cut -c 1-6`

Symptom

log file sid0_sid.old:
1: chk_for_hdr: test EDI_DC = `head -1 .KROG8504010P.000H3H.000020832.000020834 | cut -c 1-6`


Cause

On AIX 6.1, the 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`

Document information

More support for: Sterling Gentran:Server for UNIX
Extensions

Software version: 6.0.2, 6.1, 6.2

Operating system(s): AIX

Reference #: 1592667

Modified date: 22 November 2013