Generate report for Server Job

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:

Generate report for Server Job

Post by ketfos »

I have generated a report for a server job.
It is three stages - Source is hash file - transformer - target is Oracle OCI stage.
My action code in Oracle OCI is
Update exisitng rows or insert new rows/

When I view the report, I see the following statements under Oracle OCI stage

1. User defind SQL
update....
insert ....

2. User Defined Create table
Create table....

3. User Defined Drop table.
Drop table ...

My question is that when I view the Oracle OCI stage, I don to see any Create table/Drop table SQL. I only see the User defined SQL (update..../Insert statements)

Any ideas to find why drop and create statements are generated.

ketfos
ketfos
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

May i know how you are generating the report.
Using command line option or GUI?
Thanks
pandeeswaran
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Post by ketfos »

Using GUI - In designer, click on File Menu and Select Generate option.
ketfos
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

Ah!! you are in 8.x..Ok,Ok.
pandeeswaran
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Post by ketfos »

Yes 8.1 Server Edition
ketfos
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

Can you please post the exact create/Drop table sql?
Those might be creation and deletion of temporary table for processing.
pandeeswaran
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Post by ketfos »

Oracle OCI : Oracle_OCI_20

Table Name: EXPOSURE
Enable case sensitive table name and column name:
Generate SQL: Yes
User-defined SQL: UPDATE EXPOSURE ..............
Pre 4.2 User-defined SQL Behavior: Yes
Array Size: 2000
Rows per transaction: 0
Create target table: No
Generate CREATE TABLE: Yes
User-defined CREATE TABLE: CREATE TABLE EXPOSURE ..........
Drop target table: No
Generate DROP TABLE: Yes
User-defined DROP TABLE: DROP TABLE EXPOSURE
Clear table: No
Update action: Update existing rows or insert new ones
Treat warning as fatal:
Transaction isolation level: Read Committed
ketfos
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

Sorry ..honestly I don't have any clue about that.
Don"t worry ..someone will help you .
May be Ray or Craig.. :D
pandeeswaran
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The DML statements are present in case you ever decide to enable the "create table" property possibly with the "drop table" sub-property. There's nothing there to be concerned about.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Exactly, standard stage stuff. That option doesn't get a lot of play in my experience as you can't use it to simply create the target table once like you could with say a hashed file. It will happily create it but then fail on every subsequent run as the object 'already exists'. Use it if you have a table you need to drop and recreate on every run.
-craig

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