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: mpeppler at itf dot ch (Michael Peppler)
Subject: Re: Strange message
Date: Feb 19 1996 8:43AM

> From: Louis N Proyect 
> 
> The following script, which logs in to 2 db's at once, produces correct 
> results when the selects are done, but the following message appears at 
> the command line when I run it: "The $dbproc parameter has not been 
> properly initialized, it defaults to 0 at /." What does this mean?
> 
> Louis Proyect, Columbia University

Did you re-type this script, or did you paste it into your message?

There are two typos: you open $dbproc twice, and you use $dbproc1 when
calling &sql(), both times...


> 
> #!/usr/local/bin/sybperl 
> 
> require "sybperl.pl";
> require "sql.pl";
> 
> $dbproc = &dblogin("jks2", "xxx");
> $dbproc = &dblogin("lnp3", "yyy", "SYBAIS@CUAIX06");
     ^^^^^
> 
> $rss_count = "select count(*) from sis..STUD_STUDENT";
> &sql($dbproc1, "$rss_count");
> print "rss count = @res[0]\n";
> 
> $dss_count = "select count(*) from dss..STUDENT_ALUMNUS";
> &sql($dbproc1, "$dss_count");
> print "dss count = @res[0]\n";
> 


Hope this helps...

Michael