Varun,
if your pad character is the default value of 0x00 then the answer I supplied in the previous post will do what you asked for.
Search found 15603 matches
- Mon Oct 31, 2005 6:28 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Trim to Alfa Numeric values
- Replies: 8
- Views: 1683
- Mon Oct 31, 2005 5:40 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Trim to Alfa Numeric values
- Replies: 8
- Views: 1683
Varun, DB/2 is most likely using 0x000 to pad the char fields unless you've explicitly made it do something else, for instance by changing the $APT_STRING_PADCHAR. Since the target column is also a fixed length character field, you normally don't need to do anything here; but if you want to explicit...
- Mon Oct 31, 2005 5:24 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Trim to Alfa Numeric values
- Replies: 8
- Views: 1683
- Mon Oct 31, 2005 3:03 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How to make file name unique
- Replies: 4
- Views: 1244
The macros ought to work, but I think you have missed one "#" in your code, it should read
Code: Select all
#DSJobName##DSJobInvocationId# - Sun Oct 30, 2005 1:20 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How do you fix the error "OCI has fetched truncated dat
- Replies: 2
- Views: 1410
Hello vick, Willkommen to DSXchange. Offhand I would assume that the data declaration in DataStage is smaller than that declared in Oracle. Can you compare your DDL with metadata declarations? Have you changed your DataStage job by successively removing columns until you have found out which column ...
- Sun Oct 30, 2005 3:18 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: job freezing
- Replies: 8
- Views: 3615
Wahil, Since the problem is difficult to localize, can you take out the the DB/2 write stage and test to see if that might be causing your problems in the non-development environments? Are you writing to the same DB/2 instance in development? Can you monitor the database locks or have the DBA to thi...
- Sun Oct 30, 2005 3:13 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Hashed file key separation
- Replies: 7
- Views: 1561
- Sat Oct 29, 2005 10:14 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: sequential file sizes created in server vs PX
- Replies: 6
- Views: 1600
- Sat Oct 29, 2005 6:47 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Warnings in sequential file
- Replies: 2
- Views: 1346
According to your columns, you should have 76 bytes of information on that line, but the line read from the file contained 77 bytes. So you have a discrepancy between your metadata and data. Once you discover where your problem lies you can modify that column description. When data comes from mainfr...
- Sat Oct 29, 2005 2:00 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Null issues
- Replies: 10
- Views: 3189
- Fri Oct 28, 2005 12:44 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: what stage to use?
- Replies: 14
- Views: 5530
Rao, Transform stages in Px can and should be avoided where possible. That is why Jay asked if it could be done any other way - the modify and copy stages are the most likely candidates; but the INDEX function isn't built into either of them, and their intrinsic function sets are more geared toward ...
- Fri Oct 28, 2005 10:50 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: what stage to use?
- Replies: 14
- Views: 5530
I took a look at the functions available to you in a modify stage and there is nothing that will do this for you on a numeric datatype. I would use a transform stage and (if it is a string datatype) using the FIELD function; if it is a decimal field then INT() and ({Original}-INT({Original})*{precis...
- Fri Oct 28, 2005 10:00 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Problem with OR logic in constraint
- Replies: 7
- Views: 1833
- Fri Oct 28, 2005 6:10 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: export of datastage jobs
- Replies: 3
- Views: 1133
By default read-only objects are omitted (you can change that in the options for your export). The read-only objects in question are probably all of the built-in DataStage objects and can be safely ignored. Unless you specifically marked some of your DataStage objects as "read only" and need them yo...
- Fri Oct 28, 2005 4:25 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Config File
- Replies: 5
- Views: 2159