PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Cross, David" <david dot cross at csfb dot com>
Subject: RE: Use of variables in batch files
Date: Aug 17 1998 10:32AM

Are you missing the 'go' from the end of your file?

--
Dave Cross
Credit Suisse First Boston


> ----------
> From: 	sy50027@milton.sbi.com[SMTP:sy50027@milton.sbi.com]
> Sent: 	14 August 1998 14:35
> To: 	SybPerl Discussion List
> Cc: 	sy50027@milton.sbi.com
> Subject: 	Use of variables in batch files
> 
> 
> Hello,
> 
>    Is there anything special you need to consider in using variables (e.g.
> @var)
> in the batch files. When I use variables in the batch of commands similar
> to the
> following, I get no results.
> 
> declare @count smallint
> select @count = 1
> results:
> select * from table
> select @count = @count + 1
> while @count <= 5
>   goto results
> 
> Any ideas why?
> 
> Thanks
> Simon Yaminian
>