![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a ActiveX Scripting in DTS package. When i run the package it gives an error msg, "Activex Scripting : Function Not found" When i execute the same file from my local machine as a .vbs script, it runs fine. I am puzzled. Please help if i am neglecting something. Thanks *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#3
| |||
| |||
|
|
I have a ActiveX Scripting in DTS package. When i run the package it gives an error msg, "Activex Scripting : Function Not found" When i execute the same file from my local machine as a .vbs script, it runs fine. I am puzzled. Please help if i am neglecting something. Thanks *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
|
The function is to get only the required rows from a source file. Here's my code.. Main() Function Main() Dim fso Dim sTempFileName Dim fReutersWM11 Dim fInputWM11 Const ForReading = 1, ForWriting = 2, ForAppending = 8 Dim sLine, sValid Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists("\\MFTP_SERVER\MFTP_PROD\Input\GECA P.csv") = true Then Set fReutersWM11 = fso.opentextfile("\\MFTP_SERVER\MFTP_PROD\Input\GE CAP.csv" , ForReading, true) sTempFileName ="\\MFTP_SERVER\MFTP_PROD\Input\TempGECAP.csv" Set fInputWM11 = fso.opentextfile(sTempfileName,ForAppending,True) 'Readline line by line from source Do while fReutersWM11.AtEndofline <> true sLine = fReutersWM11.Readline sValid = Left(sLine,3) 'If Starts with Datevalue then Valid If sValid = "200" then 'Writeline to TempGECAP file fInputWM11.WriteLine sLine End if Loop fReutersWM11.close() fInputWm11.close() Else Main = DTSTaskExecResult_Failure End if Main = DTSTaskExecResult_Success End Function *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
I removed the Main(). And Put in a Option Explicit. Still gives same error. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#9
| |||
| |||
|
|
I removed the Main(). And Put in a Option Explicit. Still gives same error. |
![]() |
| Thread Tools | |
| Display Modes | |
| |