This is all pretty simple string manipulation since you aren't working with variable length strings. Try doing it in 2 steps, one to right-align the numeric, then the second to do the string insertions
1. In.Col[1,1]:FMT(In.Col,"11'0'R")
2. do you explicit positional changes.
Search found 15603 matches
- Wed Oct 31, 2007 4:29 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Converting/Adding 8 character into a 12 character string
- Replies: 1
- Views: 805
- Wed Oct 31, 2007 5:18 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Metadata not found
- Replies: 4
- Views: 1965
- Wed Oct 31, 2007 2:21 am
- Forum: General
- Topic: Regarding Fatal warning in the transfomer.
- Replies: 12
- Views: 4437
Try using an actual delimiter, i.e.
Code: Select all
Field(LNK_DETAILS_CUST.FIRST_NAME,' ',1)- Wed Oct 31, 2007 12:41 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Support for large dates - say 5874897-12-31
- Replies: 7
- Views: 2727
- Tue Oct 30, 2007 11:29 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: trouble in oracle stage
- Replies: 3
- Views: 870
- Tue Oct 30, 2007 11:06 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Import Orchestrate Schema Error
- Replies: 7
- Views: 2095
- Tue Oct 30, 2007 8:34 pm
- Forum: General
- Topic: Using Regular Expression in Transformer Stage Constraint
- Replies: 8
- Views: 10686
Please post your first couple of lines, BEGIN HEADER is not DS/BASIC code. Also, read up on the OCONV() function with date conversion, look at the examples, try them and then ask any remaining questions. Few people are willing to write a lengthy answer to an open-ended question when you know the ans...
- Tue Oct 30, 2007 6:58 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Row Count
- Replies: 6
- Views: 1762
Re: Row Count
...I am using DSGetLinkInfo(DSJ.ME,"Transformer1","DSLink2", DSJ.LINKROWCOUNT) to find the record count. I use this function in transformer 2. You will not get the correct row count this way. You need to call the DSGetLinkInfo() function from the after-job subroutine or from outside of the job itse...
- Tue Oct 30, 2007 5:44 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: filetransfer using server job
- Replies: 4
- Views: 1712
I'm confused by your answer - do you not wish to use the FTP stage in your job or can you not find it in your palette? The common methods of NFS Mount, SCP, RCP and FTP are all available to you from DataStage using shells. You need to decide which method you should use and then implement that in Dat...
- Tue Oct 30, 2007 5:40 pm
- Forum: General
- Topic: Regarding Fatal warning in the transfomer.
- Replies: 12
- Views: 4437
- Tue Oct 30, 2007 5:38 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Import Orchestrate Schema Error
- Replies: 7
- Views: 2095
- Tue Oct 30, 2007 5:37 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How do i extract only data that is inside the commas
- Replies: 3
- Views: 1228
This looks like the classic use of the FIELD() function. I'm not sure exactly what you are trying to do ("between the commas" is vague).
But would return the string 'fee'.
Is that what you are looking for?
But
Code: Select all
FIELD('"Deutche Bank",fee,Income from Deutche bank', ',', 2)Is that what you are looking for?
- Tue Oct 30, 2007 5:33 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: REINDEX
- Replies: 4
- Views: 1339
- Tue Oct 30, 2007 5:31 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: RETURN statement error
- Replies: 1
- Views: 846
- Tue Oct 30, 2007 5:19 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Dataset Deletion Error
- Replies: 4
- Views: 4755