Dynamic RDBMS stage not remembering User-defined SQL option

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
crsimms
Charter Member
Charter Member
Posts: 21
Joined: Mon May 30, 2005 4:21 am
Contact:

Dynamic RDBMS stage not remembering User-defined SQL option

Post by crsimms »

Hello,

I am attempting to use the Dynamic RDBMS stage within a DataStage server 7.5.1 job, but an odd thing is happening. I want to use the User-defined SQL Update Action and the stage does allow me to select it. However, after I press the OK button and then open the stage back up, the Update Action has been reset to Insert new rows only. I can say that I have never run into this problem before and nothing that I do seems to remedy the problem. One thing to note is that the stage will remember Update Actions up to and including the Insert new rows option and that the stage is being used after a transformer.

Any help is appreciated,

Chris
Chris Simms

Mobile: +972 989 0919
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

what do you mean by "does not allow me to select it"
You mean once you hit ok after typing in your sql and then you reopen it, your sql is gone?
I had this problem with the udb stage with user defined sql, i did not find a definite remedy for it. My work around was to type in the sql, copy it, hit some other tab, come back to the user define sql again and if it was gone, paste it again. It would always stay after the second time. Try doing that, or contact Ascential. This very much smells like a bug to me.
Regards,
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
crsimms
Charter Member
Charter Member
Posts: 21
Joined: Mon May 30, 2005 4:21 am
Contact:

Post by crsimms »

Chuck,

What I mean by not being able to select it is that while I can choose the option, the DataStage client will not remember this selection. When the stage is reopened, the Insert new rows only Update action is defined.

Regards,


Chris
Chris Simms

Mobile: +972 989 0919
jdmiceli
Premium Member
Premium Member
Posts: 309
Joined: Wed Feb 22, 2006 10:03 am
Location: Urbandale, IA

Post by jdmiceli »

I have this same issue, but have also noticed that it never actually inserts any data into the target table. It shows it processed X number of rows, but no rows exist in the table upon completion of the job. My basic setup is DS Server 7.5.1, SQL Server 2000 to SQL Server 2000, RDBMS stage at both ends. The job is braindead simple:

Source table --> Transform (no manipulation of data) --> Target table

Is this normal for the RDBMS control?

Thanks!
Bestest!

John Miceli
System Specialist, MCP, MCDBA
Berkley Technology Services


"Good Morning. This is God. I will be handling all your problems today. I will not need your help. So have a great day!"
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Well... processed X rows just means they were sent to the target database, it doesn't mean any were actually 'accepted' by it.

What does your job's log show? Warnings up the Wazoo? :lol:

What happens if you hang a reject link off the transformer?
-craig

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