![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to produce a result that includes only records with a Status of "A". The DTS Package is as follows: Function Main() If Instr(DTSSource("Col001"),"A") > 0 Then DTSDestination("ACTIVITY-STAT") = DTSSource("Col001") end if Main = DTSTransformStat_OK End Function This generates a table with 824 rows and 306 of them are "A", The remaining 518 are nulls. Apparently it's doing the job, but including the rows it skips. Any suggestions to avoid appending null rows appreciated!!! RBollinger |
#3
| |||
| |||
|
|
Function Main() If Trim(DTSSource("Col001")) = "A" Then DTSDestination("ACTIVITY-STAT") = DTSSource("Col001") Main = DTSTransformStat_OK else Main = DTSTransformStat_SkipRow end if End Function "robboll" wrote: I am trying to produce a result that includes only records with a Status of "A". The DTS Package is as follows: Function Main() If Instr(DTSSource("Col001"),"A") > 0 Then DTSDestination("ACTIVITY-STAT") = DTSSource("Col001") end if Main = DTSTransformStat_OK End Function This generates a table with 824 rows and 306 of them are "A", The remaining 518 are nulls. Apparently it's doing the job, but including the rows it skips. Any suggestions to avoid appending null rows appreciated!!! RBollinger |
![]() |
| Thread Tools | |
| Display Modes | |
| |