Job Parameter error

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Bram
Participant
Posts: 35
Joined: Mon Dec 27, 2004 11:40 am

Job Parameter error

Post by Bram »

Hello Every one,

I am trying to pass paramter while run time. The parameter will be the csv file in Sequential Stage. In the Sequential stage, in output tab, i am giving file name as #file1#. In the Job properties window, in the parameters tab,
parameter name = filename,
prompt = enter file
Type=string
Default Value=null
when i click on view data,
its giving Failed to open #file1# Status=-1 error.

Please help me ,

Thanks,
Bram
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Unless I'm missing something here, you've named your parameter filename. That means that in the sequential file stage, you need to reference #filename# - not #file1# - in order to use this job parameter. :?

A big clue that things are ok or not setup properly is, when you click 'View Data', does it prompt you for the appropriate number of parameters before it tries to fetch the data? If the answer is 'no' then you need to check the spelling of the parameter names you are using - and they are case sensitive, btw - and correct whatever is wrong.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Bram
Participant
Posts: 35
Joined: Mon Dec 27, 2004 11:40 am

Post by Bram »

Thank You Craig Hulett ,

for your prompt reply and your solution,

You are the man!!!!!!!

Thanks again
Post Reply