Search found 42 matches

by Sairam
Mon Jun 21, 2010 2:05 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: 'WEEK.TAG' with Sunday as start of week
Replies: 16
Views: 8784

Get the Week Starting with Sunday Oconv((Iconv(Oconv(date(), "D-YMD[4,2,2]") , "DYMD") ) - (Mod( Oconv(Iconv(Oconv(date(), "D-YMD[4,2,2]") , "DYMD"),"dw"),7) ) , "D-YMD[4,2,2]") The above expression will provide the Week Starting with Sunda...
by Sairam
Mon Jun 21, 2010 12:36 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: 'WEEK.TAG' with Sunday as start of week
Replies: 16
Views: 8784

Week Starting as Sunday and ending as Saturday Oconv((Iconv(Oconv(date(), "D-YMD[4,2,2]") , "DYMD") ) - (Mod( Oconv(Iconv(Oconv(date(), "D-YMD[4,2,2]") , "DYMD"),"dw"),7) + 7) , "D-YMD[4,2,2]") The above expression will provide the Previous...
by Sairam
Wed Apr 28, 2010 11:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: cleaning special characaters in char fields in db2
Replies: 11
Views: 5203

Use this ecpression in Transformer it will replace any special characters with ''.

Code: Select all

if alnum(lnk.SrcCol) =0 then '' else lnk.SrcCol 
Let me know .[/quote]
by Sairam
Mon Apr 05, 2010 9:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Getting error while comparing jobs across different projects
Replies: 2
Views: 2196

Sorry I forgot to mention
DS 8.0.1
Windows Env
I will post later the solution description from IBM
by Sairam
Mon Apr 05, 2010 9:02 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Getting error while comparing jobs across different projects
Replies: 2
Views: 2196

After a long time IBM sent a patch for the Client which involved for XML Parser .

Thanks :D
by Sairam
Fri Apr 02, 2010 9:45 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Removing trailing special character when source is DB2 data
Replies: 6
Views: 6972

Hi As Ray mentioned identify what is the trailing character, most of the time it would be char(10). (Install a freeware Notepad++ which has the ability to display special characters) Use this perl one liner to substitite that trailing character with blank Ex :I have used \000 ( null ) with blank per...
by Sairam
Wed Mar 31, 2010 8:53 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Getting Intermitent Error
Replies: 2
Views: 2249

Getting Intermitent Error

Getting Intermitent Error [b] "APT_PMConnectionRecord::start: cmsg read returned 28, expected 40, Invalid Argument".[/b] The recomended fix from IBM : Resolution was to Fix setConfigFile call to APT_socketWrite and add APT_DUMP_CMSG to get more information (Fix for 112783, 113682 and 11362...
by Sairam
Wed Mar 24, 2010 12:42 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Equivalent data type of Unit64 ?
Replies: 7
Views: 5295

It's not unit - it's uint - unsigned integer. NUMBER(19) does not fit into a regular integer (32 bits) but does fit in a 64-bit structure. That's the 64 of uint64 in the data type. uint64 is a ... Try Using BigInt in the DataStage because it maps to Numeric (19) of the Database. Maximum Field Size:...
by Sairam
Tue Mar 23, 2010 4:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: trim the data leading zero
Replies: 11
Views: 7568

Convert the source data from string to decimal...automatically the zero's will be stripped off. If you still want the source data to be string then convert it back from decimal to string..! Have you tried that for yourself? You may just find it is the decimal causing the zeroes... and as Craig has ...
by Sairam
Tue Mar 23, 2010 9:41 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DecimalToString Eliminating Right Zeros
Replies: 5
Views: 21944

Sairam wrote:Left('00' :DecimalToString(MyVar,"fix_zero,suppress_zero"),2)

Let me know if it works
Please find the correct expression

Left('00' :DecimalToString(MyVar,"fix_zero,suppress_zero"), Len(MyVar))
by Sairam
Tue Mar 23, 2010 9:24 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DecimalToString Eliminating Right Zeros
Replies: 5
Views: 21944

Left('00' :DecimalToString(MyVar,"fix_zero,suppress_zero"),2)

Let me know if it works
by Sairam
Mon Mar 22, 2010 10:15 am
Forum: General
Topic: Inaccurate Record counts on links
Replies: 11
Views: 4763

If calling in a independent routine handleJob = DSAttachJob(JobName, DSJ.ERRFATAL) InvocationID=DSGetJobInfo (handleJob, DSJ.JOBINVOCATIONID ) CurrentJob = JobName:".":InvocationID StageName="xxxxx" LinkName="lnk_xxxxx" InfoType=DSJ.LINKROWCOUNT Rec_Cnt = DSGetLinkInfo(...
by Sairam
Tue Jan 26, 2010 3:09 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Getting error while comparing jobs across different projects
Replies: 2
Views: 2196

Getting error while comparing jobs across different projects

The '$' character, hexadecimal value 0x24, cannot begin with a name. Line 1, position 1660 System.Xml.XmlException: The '$' character, hexadecimal value 0x24, cannot begin with a name. Line 1, position 1660. at System.Xml.XmlScanner.ScanName() at System.Xml.XmlScanner.ScanMarkup() at System.Xml.XmlT...
by Sairam
Thu Nov 18, 2004 6:52 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Help needed to stop the Job
Replies: 3
Views: 2779

Help needed to stop the Job

Hi I have wriiten a cntrl (server ) job which calls a sequncer and after the Failure or success of the sequencer ,I call DSDEtach JOb Function ,but accidentally it is in the loop and the cntrl job is not stopping . I would greatly appreciate if there are any ways to stop the cntrl (server ) job . An...
by Sairam
Thu Nov 18, 2004 4:16 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Server Cntrl Job
Replies: 0
Views: 1289

Server Cntrl Job

Hi

How to stop the Job which is running in the loop .

Thanks