equal to symbol(=) not taken as a job parameter

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
mouni
Charter Member
Charter Member
Posts: 49
Joined: Tue Jul 11, 2006 11:30 pm

equal to symbol(=) not taken as a job parameter

Post by mouni »

when a job parameter has a "=" value , the job throws a warning
as this

Invalid argvalue `error_cod=----|FILENAME= Test_20080801.dat', missing =.

Inside the transformer , we are splitting the job parameter with the delimiter as "|"

How do i remove this warning.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

How are you doing the splitting?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mouni
Charter Member
Charter Member
Posts: 49
Joined: Tue Jul 11, 2006 11:30 pm

Post by mouni »

like this Field(error_cod,'|',1)
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What is the name of the variable that contains 'error_cod=----|FILENAME= Test_20080801.dat' ?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mouni
Charter Member
Charter Member
Posts: 49
Joined: Tue Jul 11, 2006 11:30 pm

Post by mouni »

error_cod is the job parameter.

A stage variable called COD_ERROR does this function "Field(error_cod,'|',1)

The value passed to the error_cod='ERR-0020|FILENAME=Test_20080801.dat'
mouni
Charter Member
Charter Member
Posts: 49
Joined: Tue Jul 11, 2006 11:30 pm

Post by mouni »

any thoughts on this ?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

So, we're not permitted to sleep?

Given that the job parameter error_code is populated as you say:
Field(error_cod, "|", 1, 1) will return error_cod=----
Field(error_cod, "|", 2, 1) will return FILENAME= Test_20080801.dat

What are you doing with the stage variable COD_ERROR ?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

There are lots of special characters which should be avoided in parameter values like = and '. You need to write job control if have to have these values passed in.
Mamu Kim
kandyshandy
Participant
Posts: 597
Joined: Fri Apr 29, 2005 6:19 am
Location: Singapore

Post by kandyshandy »

I am not sure about this Kim's comment. I have passed an entire WHERE clause as a parameter with mutiple '=' and it worked ;)
Kandy
_________________
Try and Try again…You will succeed atlast!!
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

You can pass ' and = in job control. I doubt it would work in shell script.
Mamu Kim
Post Reply