you can use the oconv format function for decimal conversions.
Oconv(1234.567, "MD20T") will give 1234.56 without rounding off. Replace '2' in MD20T with the number of decimal places that you want in your output.
Search found 42 matches
- Thu Feb 04, 2010 1:06 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: trunc a decimal number to the X position
- Replies: 6
- Views: 3364
- Mon Jan 04, 2010 4:17 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Error connecting to AS400 file
- Replies: 18
- Views: 9322
- Mon Dec 21, 2009 1:38 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Error connecting to AS400 file
- Replies: 18
- Views: 9322
- Thu Dec 17, 2009 12:45 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Error connecting to AS400 file
- Replies: 18
- Views: 9322
Hi Craig, These are the steps followed to set the codepage at the job level. Add the environment variable $DB2CODEPAGE in the job parameters and set the default value as 912. From the NLS tab of the Db2 stage, select the option IS08859-2. This is because, the AS400 library from which we are trying t...
- Wed Dec 16, 2009 7:40 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Error connecting to AS400 file
- Replies: 18
- Views: 9322
No Ray, this happens even in other existing projects. To add more information from our analysis, the source database codepage is Latin -2 and the DataStage default is Latin -1. We are trying to set the codepage corresponding to Latin-2 which is 912 to the environment variable $DB2CODEPAGE in the job...
- Mon Dec 14, 2009 4:31 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Error connecting to AS400 file
- Replies: 18
- Views: 9322
The files do have data. From more analysis, when I try to query just a single column which has numeric data, I am able to see the contents from the same file/AS400 library. The issue is only when I try to view data from a character column. I get two kinds of error which keep changing at random. Eith...
- Fri Dec 11, 2009 8:14 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Error connecting to AS400 file
- Replies: 18
- Views: 9322
I am extremely sorry to have confused. Since the original job was aborting I designed a new job with just the three stages and the message in my last post comes when I view the data in the Db2 stage itself. The error message that comes in the job log (director) for this simpler job is testjob..Trans...
- Fri Dec 11, 2009 8:03 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Error connecting to AS400 file
- Replies: 18
- Views: 9322
- Fri Dec 11, 2009 7:50 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Error connecting to AS400 file
- Replies: 18
- Views: 9322
- Fri Dec 11, 2009 7:43 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Error connecting to AS400 file
- Replies: 18
- Views: 9322
- Fri Dec 11, 2009 7:22 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Error connecting to AS400 file
- Replies: 18
- Views: 9322
Error connecting to AS400 file
Hi, I get a fatal error when I try to run a DataStage job connecting to a AS400 file. The job is trying to read from a AS400 file and write to a hashfile. The error message is not very clear. It shows HashfilestageName.IDENT3: |-100|. This error message comes only with a new library file created in ...
- Wed Jul 29, 2009 8:04 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Merge Stage Warning
- Replies: 4
- Views: 1846
- Wed Jul 29, 2009 8:00 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Merge Stage Warning
- Replies: 4
- Views: 1846
- Wed Jul 29, 2009 7:33 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Merge Stage Warning
- Replies: 4
- Views: 1846
Merge Stage Warning
Hi, I am trying to use the Merge stage for the first time and I am not seeing expected results. My first input file: 1111,aaaa My second input file: 1111,bbbb and my ouput file is : 1111,1111,aaaa ,bbbb whereas what I expected was 1111,1111,aaaa,bbbb what could be going wrong? I have set the propert...
- Wed Jul 29, 2009 1:35 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: DB2 version upgrade
- Replies: 4
- Views: 2576