Data Stage 7.5 -SQL statement not updated in SQL Tab

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
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Data Stage 7.5 -SQL statement not updated in SQL Tab

Post by ketfos »

Hi ,
I have a job.
OracleOCi8 ---- Transformer --- OracleOCi8
In the input stage, I select Fully generated SQL Query in Query type list box. Then I click Build.
I get Build Fully Genrated Query WIndow.
I select my table and click on Select to select columns.
I hit the query tab in above screen to view the query.

(select name from customer)
Then I hit Ok to close this screen.
Then I hit VIew Data and can correctly view it.

Now I want to change column name from name to email.

I go to OracleOCi8 stage.
Select the column tab. Click on Load tab.
Select column name email from list. Click on View Data.
(select email from customer)
It shows the data correctly.

When I click on SQL tab to view my SQL, it is old sql before i made the change.
(Select name from customer)

HAs anybody encountered this in DS 7.5?


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

Post by ray.wurlod »

There has been a long-term glitch in some of the controls used in DataStage clients.

I always make sure that I don't click OK while still positioned in any field where I've made a change - always move to a different row of a grid (it's the LostFocus event the triggers the change back to the design), or move to any other tab than where I've just made a change.

This may not be the workaround you need, but at least it won't take long to try. :D
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Post by ketfos »

Hi,
I tried as suggested by Ray. It didnot make any difference.
Then I saved my changes and closed the job
Then I opened this job again.
When I view the data, I get the correct records based upon the changes in the column selections I had done.
But when I review the SQL statement, it still reflects the old SQL statement.

Ketfos
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

I think the only way to update the SQL statement in a fully-generated query is to go back into the GUI interface by hitting the build button again. After you make changes to the query within the GUI, you can then re-sychronize the column grid to the modified query.

I think you need to use a column-generated query if you want the query to change based on changes in the column grid.

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

Post by chulett »

I think you are correct, Mike. The "Fully Generated Query" option is to be avoided, in my opinion. It's only there because they needed to say they could provide that functionality, even though it is a PITA to use. As you said, you can't simply modify a portion of your query, you have to rebuild the entire thing to incorporate any changes. :roll:

I preach the use of Column Generated SQL and sparingly fall back to Custom SQL and then only if absolutely required.
-craig

"You can never have too many knives" -- Logan Nine Fingers
tonystark622
Premium Member
Premium Member
Posts: 483
Joined: Thu Jun 12, 2003 4:47 pm
Location: St. Louis, Missouri USA

Post by tonystark622 »

I preach the use of Column Generated SQL and sparingly fall back to Custom SQL and then only if absolutely required.
Amen, brother Craig!
datastage
Participant
Posts: 229
Joined: Wed Oct 23, 2002 10:10 am
Location: Omaha

Post by datastage »

another agreeer here: stick with column generated; try to avoid fully generated; don't be afraid of using user-defined, but choose column generated over user defined when you have a choice.
Byron Paul
WARNING: DO NOT OPERATE DATASTAGE WITHOUT ADULT SUPERVISION.

"Strange things are afoot in the reject links" - from Bill & Ted's DataStage Adventure
Post Reply