Error while parameterize the surrogate file in SCD stage

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
nirdesh2
Participant
Posts: 56
Joined: Thu Nov 20, 2008 12:18 pm
Location: Noida

Error while parameterize the surrogate file in SCD stage

Post by nirdesh2 »

When I give the full path of surrogate flat file in SCD stage to generate the Surrogate key, it works fine. But when I parameterize the surrogate flat file , SCD stage gives compile error. Please let me the reason.
ex..var/spool/hs/land/surr_file.txt----It works fine.
$DS_LAND$/surr_file.txt---It gives compilation error.
Nirdesh Kumar
richdhan
Premium Member
Premium Member
Posts: 364
Joined: Thu Feb 12, 2004 12:24 am

Post by richdhan »

Hi,

It should be #$DS_LAND#/surr_file.txt.

How did you insert the parameter?

Dont do the hand coding. Use the GUI to insert the parameter.

HTH
--Rich
nirdesh2
Participant
Posts: 56
Joined: Thu Nov 20, 2008 12:18 pm
Location: Noida

Post by nirdesh2 »

I am not hard coding. I am giving the parameter using Parameter GUI and its like #$DS_LAND#/surr_file.txt
Nirdesh Kumar
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

nirdesh2 wrote:I am not hard coding. I am giving the parameter using Parameter GUI and its like #$DS_LAND#/surr_file.txt

If its really

Code: Select all

#$DS_LAND#/surr_file.txt
and its not working then try using job parameter instead of Environment variable.

And tell us the result.

Regards,
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Please advise what the precise compiler error is.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

There's a bug. See viewtopic.php?t=125177

Mike
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Is there any patch for it? If no then take the error to IBM support engineers.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
richdhan
Premium Member
Premium Member
Posts: 364
Joined: Thu Feb 12, 2004 12:24 am

Post by richdhan »

Hi,

We used to face the same issues with Teradata multiload stage in DS 7.5. We could not use the $. What we did was to create local job parameter say DS_LAND. Then we use the actual environment variable say $DS_LAND in the Job Sequence as a parameter. We map the $DS_LAND to DS_LAND in the job activity. This is a work around.

HTH
--Rich
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

IF I remember correctly, I think we did get a patch from support for this issue. It didn't work... and I wasn't in the mood to pursue it further. I just did a workaround by using a regular job parameter.

I was using AIX 5.3 server, Windows XP client, and version 8.0.1. Maybe the patch works on other releases... maybe the patch has been patched... I ran into this last fall.

Mike
nirdesh2
Participant
Posts: 56
Joined: Thu Nov 20, 2008 12:18 pm
Location: Noida

Post by nirdesh2 »

Using job parameter, it is working.
Nirdesh Kumar
Post Reply