Hi Pandeesh,
Yes...it is cycle..Please find the code below.
CREATE SEQUENCE CUST
INCREMENT BY 1
START WITH 1
MAXVALUE 999
MINVALUE 1
CYCLE
CACHE 20
ORDER;
Search found 4 matches
- Wed Jun 08, 2011 2:48 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Reg: Surrogate key value
- Replies: 5
- Views: 1969
- Wed Jun 08, 2011 1:21 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Reg: Surrogate key value
- Replies: 5
- Views: 1969
Reg: Surrogate key value
Hi Folks,
Can any one help regarding below issue.
I have created db sequence to generate the surrogate key, which includes the start value as 1 and end value as 999.
My question is what will be the next value it will take if src file contains more than 999 records. ie 1000th record.
Regards,
Venkat
Can any one help regarding below issue.
I have created db sequence to generate the surrogate key, which includes the start value as 1 and end value as 999.
My question is what will be the next value it will take if src file contains more than 999 records. ie 1000th record.
Regards,
Venkat
- Tue Aug 10, 2010 4:59 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Datastage Job Design
- Replies: 6
- Views: 2832
Select col1, col2 From dm_LIM Where (code, REF_DT) in (Select code, max(REF_DT) From dm_LIM LIM, dm_syu Where LIM.code= SYU.code And LIM.REF_DT <= SYU.REF_DT) I am not sure which Stage I should use to implement the logic for (Where LIM.code= SYU.code And LIM.REF_DT <= SYU.REF_DT) Here dm_LIM is ur d...
- Tue Aug 10, 2010 4:36 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Aggregator stage preserve type property
- Replies: 1
- Views: 4101
Aggregator stage preserve type property
Hi Friends,
Iam using aggregator stage to find the max of one date field, using max(date) with preserve type true as subproperty.. it is working fine,
My question is what is the need of using preserve type property here ..without this job getting aborted... Can you please clarify this.
Iam using aggregator stage to find the max of one date field, using max(date) with preserve type true as subproperty.. it is working fine,
My question is what is the need of using preserve type property here ..without this job getting aborted... Can you please clarify this.