Search found 72 matches

by prakashdasika
Wed Sep 14, 2011 7:51 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Some Shortcomings in Datastage v8.1
Replies: 0
Views: 1696

Some Shortcomings in Datastage v8.1

As part of my recent development work with version 8.1 , I found following issues in Datastage: 1. The XML stages (Input, Output) does not understand the date 0001-01-01(yyyy-mm-dd). If the elements in the XSD for XML are defined as date and the data type for the corresponding elements in the stages...
by prakashdasika
Sun Sep 11, 2011 8:29 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Record Dropped
Replies: 18
Views: 10063

Try this:

If NullToEmpty(DSLink18.copysno)='' Then 1 Else DSLink18.copysno

This should work.
by prakashdasika
Sun Sep 11, 2011 8:16 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Datastage XML
Replies: 4
Views: 2803

You can use a external source stage as specified by Ernie in his blog or do the same thing using a wrapper stage (custom stage) and do a 'ls' to get the xml file and in the input tab of XMLInput stage select the source as 'URL/Path'. If the name of file remains same then you can also have a transfor...
by prakashdasika
Mon Jun 20, 2011 9:05 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: &PH& Directory
Replies: 11
Views: 5374

You can use performance analysis function in the job. It creates the reports with memory and cpu utilization for all the stages involved in the job. You can also include environment variables 'APT_PM_PLAYER_TIMING' and 'APT_PM_PLAYER_MEMORY' in your job and view the log to debug the operators/stages.
by prakashdasika
Mon May 30, 2011 11:45 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: XML output fails validation against XSD
Replies: 4
Views: 2094

Thanks Craig. Yes, it works when it is created non-formatted. But since it creates the XML in a single line how do we format it after validation. Earlier in a batch job i used xmlint -format or xmlint -recover to expand the XML as formatted but since this is a online job can we use a c++ routine tha...
by prakashdasika
Mon May 30, 2011 12:32 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: XML output fails validation against XSD
Replies: 4
Views: 2094

XML output fails validation against XSD

Hi, I am working on a job that creates XML output which will be sent to a web service. The XML is a complex structure with many repeating elements, so i used multiple XML output stages to first create the Repeating element chunks and then combine then together through a join to create my Response XM...
by prakashdasika
Sun May 29, 2011 9:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: csv files with double and non double quotes
Replies: 2
Views: 1955

If there are multiple files with same metadata and similar name format, use 'file pattern' as reading method.
by prakashdasika
Sun May 29, 2011 9:01 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: csv files with double and non double quotes
Replies: 2
Views: 1955

As it is a CSV file the delimiter should be ','. Please check if the double quotes you mentioned are only for text fields, if they bare then the property for this should be selected. Please make sure to add Record or Final delimiters properly. The files in general can sometimes have a Unix or Dos fo...
by prakashdasika
Sun May 29, 2011 8:48 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Data insert multiple times in target database
Replies: 9
Views: 6187

Be more specific with your question. What database it is? Which stage are you using? What table are you loading to i.e what constraints and indexes does it have? what method are you using to load i.e bulk load or other etc...
by prakashdasika
Tue May 17, 2011 9:57 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: XML Parsing & validation against the schema .XSD
Replies: 4
Views: 6121

In v.8.1 XML validation is done at XML input stage. We can specify it as strict validation which means it will look for all enumeration values for fields, as well as any unknown elements. The XSD's location should be specified in the XML header as well as in the 'Namespace declaration' tab in XML in...
by prakashdasika
Fri May 13, 2011 12:29 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Remove an xml element from an xml in Datastage
Replies: 2
Views: 3986

Is the element a repeating one? If not it can be easily done in transformer stage. All you have to do is use index function to get the positions start and end of tags and use sub string function to remove that from XML. But remember to define the updated filed as XML.
by prakashdasika
Thu May 12, 2011 1:33 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Vertical Pivoting...rows to colums
Replies: 6
Views: 3517

If my input is from a database , where i have to convert multiple rows to columns i can extract all of then in a single row by a sql query and use a transformer with substring or a column import with a schema file defined. :)
by prakashdasika
Wed May 11, 2011 9:42 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Connector with Insert Else Update
Replies: 5
Views: 4822

Because the number of records written are high i would use two different stages to do insert and update. Instead of insert you can aslo do bulk load which will save some time. Also how are you dealing with indexes on the table?
by prakashdasika
Wed May 11, 2011 8:10 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Table Name as Parameters in all the jobs
Replies: 4
Views: 2760

Denormalize the paramete sets, for example we use one set for all unix paths, one for oracle connections, one for the tables etc.. It is easier to maintain, and as you might have known that when the parameter set gets updated the jobs that use it have to be recompiled, it beomes easier to maintain w...
by prakashdasika
Wed May 11, 2011 8:05 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Vertical Pivoting...rows to colums
Replies: 6
Views: 3517

Use the transformer stage and stage variables with the help of substring function to do it.