Hi,
I have a requirement where, i have a source column from which i am getting two types of records which are numeric and alphanumeric which is defined as Varchar field in the DS job.
Now my requirement is, if a record with all numeric characters comes, the preceding zeros should be deleted.
if a record with alphanumeric characters comes, the preceding zeros should be preserved.
So, this requirement is for the records prepadded with zeros.
Can it be achieved for the same column?
Checking for two types of records in the same column
Moderators: chulett, rschirm, roy
Checking for two types of records in the same column
Thanks and Regards!!
dspxlearn
dspxlearn
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Perhaps you can use this
Code: Select all
If Num(DSLink.filed) then Trim(DSLink.field,'0','L') Else DSLink.field
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'