Search found 49 matches

by akarsh
Thu Aug 23, 2012 5:27 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dataset Data Removal
Replies: 13
Views: 4481

You can also write a dummy job which uses a row-generator to generate one row, then a transform or filter to remove that one row and write to your dataset; that will do the same thing as the command-line would, it creates an empty new dataset. even i thought for the same but wanted to know more fro...
by akarsh
Thu Aug 23, 2012 5:25 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dataset Data Removal
Replies: 13
Views: 4481

Thanks Ray.

So Data set truncatation will just remove Data file and will convert data set to a 0 byte file, keeping descriptor file as it is?
by akarsh
Thu Aug 23, 2012 4:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dataset Data Removal
Replies: 13
Views: 4481

Hi,

I just want to convert it to ZERO byte ds not to remove.So i think if i remove data file , it will work? can i fire rm command to remove datafile?
by akarsh
Thu Aug 23, 2012 4:08 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dataset Data Removal
Replies: 13
Views: 4481

Dataset Data Removal

Hi,

I have some space issue due to which i want to just remove data form a dataset and convert it to ZERO byte DS after loading to a DB table. how we can do this through UNIX/Data stage?
by akarsh
Thu Aug 23, 2012 2:04 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Partitioning for Aggregator
Replies: 5
Views: 2961

Re: Partitioning for Aggregator

I think we need to use the key on which we are going to aggregate.if its a single key than it should work.
by akarsh
Tue Aug 21, 2012 8:16 am
Forum: General
Topic: Help needed on Requirement - File Processing
Replies: 13
Views: 5313

Re: Help needed on Requirement - File Processing

Hi, Read the file and in a transformer check if it contains a date value in satage variable. if so move some flag value in seq file and in transformer use the property abort after no of rows as 1 row. file -> Tfm- Actual file processing | seq file (which contain some flag, if so ABORT) Hope u can ab...
by akarsh
Thu Aug 16, 2012 9:05 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Multiple Update issue
Replies: 10
Views: 3077

Actually what happend i was using sqldeveloper to access Oracle DB. When i was updating records for unit testing i was doing commit but it was not working then i used commit option given in sqldeveloper which worked. After that when i ran before and after SQL it worked perfect for me. So basically i...
by akarsh
Mon Aug 13, 2012 8:38 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Multiple Update issue
Replies: 10
Views: 3077

There was no error msg. It was some DB connection issue.

Its resolved now. Thnaks for your help. :)
by akarsh
Mon Aug 13, 2012 7:28 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Multiple Update issue
Replies: 10
Views: 3077

ArndW wrote:in that case, did you include the schema name? ...
Yes.. :(
by akarsh
Mon Aug 13, 2012 5:46 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Multiple Update issue
Replies: 10
Views: 3077

Re: Multiple Update issue

It's actual oracle DB table name which i need to update.
by akarsh
Mon Aug 13, 2012 5:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Multiple Update issue
Replies: 10
Views: 3077

Re: Multiple Update issue

In Before SQL just giving as

UPDATE
Table name
SET
Clm = 'A'
WHERE Clm In (' ','B','C','E','9') ;

Same query is working in DB but not updating through DS.
by akarsh
Mon Aug 13, 2012 5:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Multiple Update issue
Replies: 10
Views: 3077

Multiple Update issue

Hi,

I am trying to update a ORACLE table using oracle connector in DS 8.7 through before and after job SQL.
It worked for me once but if i change the value for doing Unit testing its not giving proper results.
Please advise what needs to be done in such case.
by akarsh
Wed Jun 22, 2011 12:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: 8.1 Db2 Warning - to run in parallel without using the NODEN
Replies: 0
Views: 1123

8.1 Db2 Warning - to run in parallel without using the NODEN

Hi, In my job i am extracting data from Db2 EE stage and using partitioning table option. My query is like SELECT Col1, col2 FROM Tab A INNER JOIN Tab B ON ( A.Col1 = B.Col1 AND A.REPORT_DT=B.REPORT_DATE ) WHERE A.ID = '1234' AND A.REPORT_DT = 'YYYY-MM-DD' AND dbpartitionnum(A.Col1) = current dbpart...
by akarsh
Mon Nov 16, 2009 12:15 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: ODBC Stage throwing warning message on field definition
Replies: 2
Views: 1691

Hi, I believe you are capturing rejects in seq file after loading to DB. In that case do like below Go to columns tab of the sequential file stage click on the column number and go to the edit column meta data window and in the Nullable properties specify the null field value as equivalent no of spa...
by akarsh
Wed Jan 28, 2009 4:47 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How can I remove dashes in a date format?
Replies: 7
Views: 9987

Re: date conversion

swarnkar wrote:
Virupan wrote:Hi,

How can I convert date format from 'yyyy-mm-dd' to 'yyyymmdd' format ?

You can delete " - " by using EREPLACE function

EREPLACE(columnName,"-","")

Nitin Swarnkar
u can also do like

date[1,4]:date[6,2]:date[9,2]