IBM Support

After installing a service pack, shell script issues occurs on any operating system interaction.

Question & Answer


Question

How to get rid of the scripting errors on DataStage" job?
"sh: switchml: line 1: syntax error: unexpected end of file"
"sh: error importing function definition for `switchml'"
"sh: which: line 1: syntax error: unexpected end of file"
"sh: error importing function definition for `which'"
"sh: ml: line 1: syntax error: unexpected end of file"
"sh: error importing function definition for `ml'"
"sh: _module_raw: line 1: syntax error: unexpected end of file"
"sh: error importing function definition for `_module_raw'"
"sh: scl: line 1: syntax error: unexpected end of file"
"sh: error importing function definition for `scl'"
"sh: module: line 1: syntax error: unexpected end of file"
"sh: error importing function definition for `module'"

Cause

This feature is a linux scripting configuration issue.

Answer

Unset any following environment variables:
"BASH_FUNC_module, BASH_FUNC__module_raw, BASH_FUNC_switchml, BASH_FUNC_scl, BASH_FUNC_ml"

[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSZJPZ","label":"IBM InfoSphere Information Server"},"ARM Category":[{"code":"a8m50000000L0t8AAC","label":"DataStage"}],"ARM Case Number":"TS009330858","Platform":[{"code":"PF016","label":"Linux"}],"Version":"11.7.1"}]

Document Information

Modified date:
24 October 2022

UID

ibm16831593