Search found 30 matches
- Mon Feb 26, 2007 6:21 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Exec. Command stage to import sequential file info
- Replies: 10
- Views: 3217
Exec. Command stage to import sequential file info
Hi, I am trying to use Exec command stage to pull data into a parameter as a list for use in an SQL DB2 query. My command is: type \\Nho04\myfilepath.txt Which is found and has imported my data. The query is as follows: SELECT CTR_POL_NUM, CTR_RSA_TOT_PREM FROM DMIDBO.CTR_TRANSACTION WHERE CTR_SOURC...
- Mon Feb 26, 2007 4:44 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: DB2 SQL referencing a list
- Replies: 16
- Views: 6550
Re-opened this post because I have a question regarding the FUNCTION PolicyList(PoliciesFile) script you recommended Ray. I understand #PoliciesList# will reference the function, however where do you suggest I actually write the FUNCTION section? Within the SQL area of a DB2 stage after the SELECT s...
- Thu Feb 22, 2007 12:45 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Simple Transformer string manipulation question
- Replies: 2
- Views: 1011
- Thu Feb 22, 2007 11:13 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Simple Transformer string manipulation question
- Replies: 2
- Views: 1011
Simple Transformer string manipulation question
Hi, Simple Question that I cannot find info for: How do you pull specific chars from a string based on their position? i.e. "abcdefg" -> I want to pull position 4, which will return 'd' in this case. I know for the above example Right('abcdefg',4) returns 'defg', however I only need the si...
- Tue Feb 13, 2007 4:29 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: DB2 SQL referencing a list
- Replies: 16
- Views: 6550
- Tue Feb 13, 2007 2:45 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: DB2 SQL referencing a list
- Replies: 16
- Views: 6550
- Tue Feb 13, 2007 10:28 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: DB2 SQL referencing a list
- Replies: 16
- Views: 6550
DB2 SQL referencing a list
Hi, I'm writing an SQL pull from a DB2 database as follows (not completely debuged but u get the picture): SELECT POLICY ,DEC (SUM (TBASICPRM), 12,2) FROM CMIDBO.PREMTRAN WHERE COMPANY = 1 AND PRODUCT IN ('COM' , 'FRM') AND POLICY IN (119102207 ,628332100 ,855064102 ) GROUP BY POLICY WITH UR ; What ...
- Mon Feb 12, 2007 3:50 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Decimal field with Trailing negative signs
- Replies: 18
- Views: 5047
- Mon Feb 12, 2007 2:12 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Decimal field with Trailing negative signs
- Replies: 18
- Views: 5047
The string manipulation worked well, however is there a better command than len(in.col) as it returns the max length of the string, not its current trimmed length (just wondering). Also, I agree that with a proper datatype setup this would be handled much more effectively. However, does it matter th...
- Mon Feb 12, 2007 1:47 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Decimal field with Trailing negative signs
- Replies: 18
- Views: 5047
- Mon Feb 12, 2007 1:41 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Decimal field with Trailing negative signs
- Replies: 18
- Views: 5047
- Mon Feb 12, 2007 10:41 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Decimal field with Trailing negative signs
- Replies: 18
- Views: 5047
- Mon Feb 12, 2007 10:16 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Decimal field with Trailing negative signs
- Replies: 18
- Views: 5047
Decimal field with Trailing negative signs
Hi,
Just wondering if anyone knew of a good way to deal with decimal fields that, if negative, have trailing negative signs on import.
Ex:
1,234.05-
22,000.00
When converting from char to decimal it does not like the negative sign.
Any suggestions?
Thanks,
Adam
Just wondering if anyone knew of a good way to deal with decimal fields that, if negative, have trailing negative signs on import.
Ex:
1,234.05-
22,000.00
When converting from char to decimal it does not like the negative sign.
Any suggestions?
Thanks,
Adam
- Mon Feb 12, 2007 10:13 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Importing Decimal field with commas
- Replies: 4
- Views: 1047
- Fri Feb 09, 2007 3:35 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Importing Decimal field with commas
- Replies: 4
- Views: 1047
Importing Decimal field with commas
Hi, I'm attempting to import a field containing commas as well as decimals within the number set . i.e. 123,020.13 987,876.00 The field is defined as decimal, however it appears it does not like the commas. I recieve the following error: Warning: Sequential_File_0,0: Field "huon_prem" has ...