Groups | Blog | Home
all groups > sql server dts > october 2005 >

sql server dts : DTS Scheduled Job


David J. Cartwright
10/31/2005 12:00:00 AM
well to answer your original psot, you must troublshoot your step sto make
sure the final one returns normaly.

Some things you can do.

log what the value of <strZipCmd = "wzunzip -c -o " & strZipDir &
DTSGlobalVariables("ZipFile").value & " " & strDestDir> ends up being
execute the script as a vbscript with the credentials of the Agent account
using runass

or run the command from the command line using you credentials
make sure the command executes and returns normaly

make your script write the command output to a file...

just do some normal troublshooting to determine where it fails...

The reason your job never finishes is because your final step is not
returning normaly.....you can use taskmon or procmon from sysinternals to
see if wzunzip is still running after you think it is done....etc

this help any ?

[quoted text, click to view]

Kibagami23
10/31/2005 10:43:15 AM
I have a scheduled job to run daily at 6:00 am, but it only executes
the first day after scheduled after that it stays on "Executing Step 1"
and since the job doesn't finish it doesn't start the day after that,
how can stop the job after it completes, because the job does
everything it supposed to do, it just doesn't stop after executing,
what can i do about it?, any info or ideas is very much welcomed.

Thank you
Kibagami23
10/31/2005 11:05:32 AM
Thank you for the prompt answer, yes it is a cmd exec,the last task of
the package is to extract a zipped file into a folder (using wzunzip),
by the way that is another problem, according to the job everything
finishes ok, but it doesn't extract the file (the error on that task
is "End of central directory signature not found, the file is not
recognazible" or something like that but the main poroblem here is that
it doesn\t recognize the ".Z' extension of the file, but if i extract
the file manually it does extract it, any ideas on this one?), the
steps on the package are:

Activex Script Task (to generate todays value onto a global variable)
Dynamic task properties (to update the globalvariable)
File Transfer Protocol Task (to get the zipped file from the FTP
server)
Activex Script Task (to extract the file using wzunzip)

This is the command on the last script:
strZipCmd = "wzunzip -c -o " & strZipDir &
DTSGlobalVariables("ZipFile").value & " " & strDestDir
Kibagami23
10/31/2005 11:41:25 AM
Thank you for the ideas i've already log the value of the strZipCmd and
it's ok, and yes WZunzip is still running after i tought was finished,
i'm going to work on that, by the way the cmd line i'm using is
correct, right? i mean i'm using paths with the share name not the
letter of the drive also this is run at the server i checked that
already.

Thank you
Kibagami23
10/31/2005 1:01:50 PM
Hello Again, i've just run the cmd line from master..xp and i got the
full error on wzunzip now, here it is " End-of-central-directory
signature not found. Either this file is not a Zip file, or it
constitutes one disk of a multi-part Zip file".
What can i do about this?
The weird thing is if i extract the file using winzip (win version) it
does extract it
Any ideas?

Thanks
David J. Cartwright
10/31/2005 1:53:48 PM
what is the job executing ? is it a cmd exec...if so does the executable
terminate properly.....what does the error/messages window whow in job
history/job detail ?

[quoted text, click to view]

David J. Cartwright
11/1/2005 9:06:33 AM
can you post the command line ?

[quoted text, click to view]

Kibagami23
11/1/2005 9:22:24 AM
Yes, this is the cmd line i'm using

'exec master..xp_cmdshell ' + '''' +
'\\computername\sharename\folder\subfolder\' +
'wzunzip -yb -o \\computername\sharename\folder\subfolder\' +
@ZipFileName +
' \\computername\sharename\folder\' + ''''
Kibagami23
11/1/2005 9:22:36 AM
Yes, this is the cmd line i'm using

'exec master..xp_cmdshell ' + '''' +
'\\computername\sharename\folder\subfolder\' +
'wzunzip -yb -o \\computername\sharename\folder\subfolder\' +
@ZipFileName +
' \\computername\sharename\folder\' + ''''

Thank you
AddThis Social Bookmark Button