I am running on Sybase, but through a Smartstream job.
My command line is as follows:
isql -U (user) -P (password) -i xxx/sqlfile -o xxx/outputfile.txt -w 2000
Does grep -v 'return status =' get rid of the line?
Does anyone know how to get rid of the (return status = 0) on the bottom of my output text file when running my sql job? I have tried to 'set nocount on' but it doesnt seem to work.
Maybe I am adding the set nocount on line in the wrong place. Do i add it to my sql script or on the isql command line?
My sql is>>
declare cursor a_csr for
Select
....
go
When I run this SQL to a text file, it prints out fine, but contains a End of Job Successful [or something similar] at the bottom of my text file. Is there any way to get rid of this?
I am using Sybase.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.