DataStage 7.5.x with Sybase IQ 12.6 on Linux

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
Precious
Charter Member
Charter Member
Posts: 53
Joined: Mon Aug 23, 2004 9:51 am
Location: South Africa
Contact:

DataStage 7.5.x with Sybase IQ 12.6 on Linux

Post by Precious »

Hi,

As far as I know (after searching the forum) this has not being covered before.

We are able to connect to the IQ database using both ODBC and Open Client.
The Sybase Open Client is behaving rather strangely. To just list a couple of scenarios:

Have a Sybase OC Stage connecting to a table and doing a simple select,
select max(skey) from xTable.. Instead of getting one row, all the rows are returned. The sql shows the correct syntax. After changing to a Dynamic RDBMS Stage, same thing happens when Sybase is selected as a server type. But after changing to ODBC as a server type, one row is selected.

Another issue-view data returns a blank error in datastage[message box with exclamation and ok button, but no error message] when using sybase oc and returns data when using ODBC.

The problem is that these issues are not consistant. This happens with some of the jobs and not all of them. :cry:

Has anybody come across this before?
Any suggestions?

Thanks,
Precious

Mosher's Law of Software Engineering: Don't worry if it doesn't work right. If everything did, you'd be out of a job.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I can only suggest that you involve the DBA to track exactly what query was received/executed by the database server.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

The Sybase stuff is flaky. You can see this by looking at the generated SQL in the RDBMS stage and see that it is not correct, or, what you see is what is not sent to the database.

How are you using the Sybase plug-in to generate the SQL? Did you look at using column derivation-based generated SQL? (check the box on the output stage tab) If you tried putting the MAX(...) on the derivation column, it doesn't work without checking this box. The derivations are ignored.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Precious
Charter Member
Charter Member
Posts: 53
Joined: Mon Aug 23, 2004 9:51 am
Location: South Africa
Contact:

Post by Precious »

Thanks for the responses.
How are you using the Sybase plug-in to generate the SQL? Did you look at using column derivation-based generated SQL? (check the box on the output stage tab) If you tried putting the MAX(...) on the derivation column, it doesn't work without checking this box. The derivations are ignored.
That is the first thing that I checked. I was using derivation-based generated SQL with the check box for the option checked. The only way to get it to work with the Sybase plug-in was to use user-defined SQL.

I am going to go the route of checking what exactly is getting executed on the database using the various stages and connection types. Will post findings.

Regards,
Precious

Mosher's Law of Software Engineering: Don't worry if it doesn't work right. If everything did, you'd be out of a job.
Precious
Charter Member
Charter Member
Posts: 53
Joined: Mon Aug 23, 2004 9:51 am
Location: South Africa
Contact:

Post by Precious »

Hi,

After running a couple of jobs, I can't reproduce the problems.:?
It seems to be the environment that is unstable, and not necessarily the DataStage Sybase Stages. We are in the process of moving to bigger and better, and hopefully more stable boxes. If the issues re-occur, I will resume testing then.

Regards,
Precious

Mosher's Law of Software Engineering: Don't worry if it doesn't work right. If everything did, you'd be out of a job.
nvalia
Premium Member
Premium Member
Posts: 180
Joined: Thu May 26, 2005 6:44 am

Post by nvalia »

The reason is happening is due to the fact that Sybase Open Client connectivity used 64-bit architecture while the ODBC driver is designed for 32-bit architecture that is used by Datastage.
Hence this instability & non consistent behaviour.

Regards,
NV
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Can we presume that you work at the same site as Precious?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply