Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filter records in DTS

Status
Not open for further replies.

dwight1

IS-IT--Management
Aug 22, 2005
176
US
I want to filter records in DTS. I am transfering data from AS400. The format of the date field is 111805 and 11805. I can use the string
WHEN len(LDEPD6) = 6 THEN substring(LDEPD6, 1, 2) + '/' + substring(LDEPD6, 3, 2) + '/' + substring(LDEPD6, 5, 2) WHEN len(LDEPD6)
= 5 THEN substring(LDEPD6, 1, 1) + '/' + substring(LDEPD6, 2, 2) + '/' + substring(LDEPD6, 4, 2) END

in the query analyzer but am not able to use the same string in the DTS.

Can any one advise me how to read the 111805 or 11805 as a date field and set filter on the data transfer.

One more thing, if i just transfer the data the field comes as a decimal and we cannot apply the above string. So the decimal has to be converted to either char/nvarchar before applying the string.

Thanks in advance.

Dwight

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top