Error when running Data stage server job

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

sashah
Participant
Posts: 37
Joined: Thu May 10, 2007 3:02 pm

Post by sashah »

Yes one of the four column selected is substituted in the parameters marker. The marker is for column Account_nsp_id. 4 columns are defined in the stage.
sashah
Participant
Posts: 37
Joined: Thu May 10, 2007 3:02 pm

Post by sashah »

Ray,

That is correct. We are passing the account numbers to get data for them.

Thank you
Samir
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then account_nsp_id should be marked as a Key. And I assume your column order in the stage matches the select order in the query, yes?
-craig

"You can never have too many knives" -- Logan Nine Fingers
sashah
Participant
Posts: 37
Joined: Thu May 10, 2007 3:02 pm

Post by sashah »

I have the Account_nsp_id as the key. Yes the column order is the same. Does the column name in the stage have to match the column names in the query.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No, not in a Server job. You're probably going to need to refer this to your support provider to see what your options are there. It seems to be getting confused about your need for a key with no where clause in your query, not to mention the parameter marker is part of the 'from' clause here. And knowing squat about SQL Server, I've got no idea how to 'work around' this.

Perhaps someone else does.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I'd be using generated SQL, or rewriting the SQL so that it avoids the "shorthand" syntax and uses an explicit WHERE clause.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sashah
Participant
Posts: 37
Joined: Thu May 10, 2007 3:02 pm

Post by sashah »

Craig,

Thank you for all your help. As per your suggestion,I moved the marker as a part of the where clause when calling the function and it worked.

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

Post by chulett »

Well, that's good news. Can you please mark your topic as Resolved now using the big button at the top of the page? Thanks!
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply