pasing parameter from script!!

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
allavivek
Premium Member
Premium Member
Posts: 211
Joined: Sat May 01, 2010 5:07 pm

pasing parameter from script!!

Post by allavivek »

Hi All,

I was trying to pass the filename param from script to sequence.

It was not getting passed , an empty value is getting passed and when i give the value in sequence properties . its working..

the file name changes for each run ...

Do i need to set any thing to make this work...

thank you
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Check whether you are passing the right variable to the job? Whether value was assigned to it?
You are the creator of your destiny - Swami Vivekananda
allavivek
Premium Member
Premium Member
Posts: 211
Joined: Sat May 01, 2010 5:07 pm

Post by allavivek »

anbu wrote:Check whether you are passing the right variable to the job? Whether value was assigned to it?
Thanks anbu for reply ,

Yes i was passing the same variable with value passed as input to script.

When iam seeing in director log i cannot see any value assigned to this param...

Due to no value passed the sequence was getting aborted...

any suggestions...
vinothkumar
Participant
Posts: 342
Joined: Tue Nov 04, 2008 10:38 am
Location: Chennai, India

Post by vinothkumar »

Can you post your syntax that you used.
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Add command set -vx before dsjob command in your script. This will give you the trace of the commands. Check what is passed to dsjob.
You are the creator of your destiny - Swami Vivekananda
allavivek
Premium Member
Premium Member
Posts: 211
Joined: Sat May 01, 2010 5:07 pm

Post by allavivek »

anbu wrote:Add command set -vx before dsjob command in your script. This will give you the trace of the commands. Check what is passed to dsjob.

Hi anbu

I tried using set -vx

It was not passing file params...

What i did was i concatenated all params to single varaible and passed as param..

I guess it went wrong doing concatenation...

ill recheck and let know..

thanks
Post Reply