Error while running the orchestrate scripts

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
dsusr
Premium Member
Premium Member
Posts: 104
Joined: Sat Sep 03, 2005 11:30 pm

Error while running the orchestrate scripts

Post by dsusr »

Hi All,

I am trying to create the osh script for some small logic.

Following is the code that I have written in the osh script:-

transform -outputschemafile 'out_schema'
-inputschemafile 'schemaforos'
-expressionfile expfile
-flag compile -dir '/home/dsadm/testDS/OshTestSal' -name transferfile;
import
-schemafile 'schemaforos'
-file 'InpFileLeft.txt'
|tsort -key 'var1' -hash -desc
|transform -flag run -name transferfile.so >| OutOsh3.txt

While I am trying to run this script I am getting the following error:-

##F TUXX 000001 14:47:36(000) <main_program> Internal Error: (obj): transform/transform.C: 1526
Traceback: Could not obtain stack trace; check that 'gdb' and 'sed' are installed and on your PATH


I have checked and found that no gdb is installed on the PATH but sed is already there.

If anyone has any idea about this error, please help me :(

Regards
dsusr
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Find where gdb is and make sure that its parent directory is in the PATH.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dsusr
Premium Member
Premium Member
Posts: 104
Joined: Sat Sep 03, 2005 11:30 pm

Post by dsusr »

ray.wurlod wrote:Find where gdb is and make sure that its parent directory is in the PATH.
Hi Ray,

I have searched on my Unix machine and there is no executable with the name gdb.

I dont know if this problem is exactly related to gdb only or some other thing since if it is a gdb problem then I would not have been able to run the PX transformer also but I am able to run the PX transformer.

Regards
dsusr
Eric
Participant
Posts: 254
Joined: Mon Sep 29, 2003 4:35 am

Post by Eric »

This is a message that the osh is wrong in some way.

Why are you trying to write in Osh?
Why don't you create your job using the Designer?
dsusr
Premium Member
Premium Member
Posts: 104
Joined: Sat Sep 03, 2005 11:30 pm

Post by dsusr »

Eric wrote:This is a message that the osh is wrong in some way.

Why are you trying to write in Osh?
Why don't you create your job using the Designer?
Hi Eric,

The requirement is such that my output schema is fixed, but the input schema may vary for each file. Also I am having one file that will give which output field is mapped to which input field.

So now what I am trying is to mix osh and unix scripting to dynamically create this mapping job. In the osh I will modify the expfile using Unix sed command. Problem here is that this logic cannot be implemented in transformer so just using osh for this.

If you have any suggestions, then do provide that.

Thanks
dsusr
dsusr
Premium Member
Premium Member
Posts: 104
Joined: Sat Sep 03, 2005 11:30 pm

Post by dsusr »

ray.wurlod wrote:Find where gdb is and make sure that its parent directory is in the PATH.
Hi Ray/Eric,

Thanks, noww my orchestrate script is working fine after installing the gdb.
Problem was coming since the transform operator was requiring that debugger while compilation.

Regards
dsusr
Post Reply