Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

syntax error when upgrading from ASA.8 to ASA.10 -- error position too long

3 posts in General Discussion Last posting was on 2009-01-21 15:29:32.0Z
ilapanc Posted on 2007-03-27 20:10:05.0Z
From: ilapanc@gmail.com
Newsgroups: ianywhere.public.general
Subject: syntax error when upgrading from ASA.8 to ASA.10 -- error position too long
Date: 27 Mar 2007 13:10:05 -0700
Organization: http://groups.google.com
Lines: 15
Message-ID: <1175026205.068775.309030@e65g2000hsc.googlegroups.com>
NNTP-Posting-Host: 64.73.227.2
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1175026206 17264 127.0.0.1 (27 Mar 2007 20:10:06 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 27 Mar 2007 20:10:06 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: e65g2000hsc.googlegroups.com; posting-host=64.73.227.2; posting-account=cyt7DQwAAADl28bvegH0UQ3TtXU0k-iQ
Path: forums-1-dub!forums-master!newswest.sybase.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!e65g2000hsc.googlegroups.com!not-for-mail
Xref: forums-1-dub ianywhere.public.general:7285
Article PK: 5502

When upgrading from 8 to 10 the following statement does not work

>>
>>create function DBA.dll_Sh_GetBackupRootFolder(out lpDestBuff char(260),inout nCnt integer)
>>returns integer
>>external name 'Sh_GetBackupRootFolder@Sh_DBUtil32.dll'
>>

I am getting the error
Syntax error -- error position too long

It works if I change the out and inout to in only

and idea ?

Thanks


Mark Culp [Sybase iAnywhere] Posted on 2008-12-22 15:08:30.0Z
Message-ID: <494FAD6D.5F67E5C1@iAnywhere.com>
From: "Mark Culp [Sybase iAnywhere]" <reply_to_newsgroups_only_please_nospam_mark.culp@iAnywhere.com>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: ianywhere.public.general
Subject: Re: syntax error when upgrading from ASA.8 to ASA.10 -- error position too long
References: <1175026205.068775.309030@e65g2000hsc.googlegroups.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 22 Dec 2008 07:08:30 -0800
X-Trace: forums-1-dub 1229958510 10.22.241.152 (22 Dec 2008 07:08:30 -0800)
X-Original-Trace: 22 Dec 2008 07:08:30 -0800, vip152.sybase.com
Lines: 28
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:7291
Article PK: 5507

Functions are not allowed to have anything but IN parameters.
See the remarks sections in this doc page:
http://dcx.sybase.com/index.php#http%3A%2F%2Fdcx.sybase.com%2Fhtml%2Fdbrfen10%2Frf-create-function-statement.html

It appears that SA 8 allowed you to declare the function with OUT parameters,
and the rules have been tighten in newer versions.
--
Mark Culp
SQLAnywhere Research and Development
Sybase iAnywhere Engineering
-------------------------------------------------------------------------

ilapanc@gmail.com wrote:
>
> When upgrading from 8 to 10 the following statement does not work
> >>
> >>create function DBA.dll_Sh_GetBackupRootFolder(out lpDestBuff char(260),inout nCnt integer)
> >>returns integer
> >>external name 'Sh_GetBackupRootFolder@Sh_DBUtil32.dll'
> >>
> I am getting the error
> Syntax error -- error position too long
>
> It works if I change the out and inout to in only
>
> and idea ?
>
> Thanks


forums.sybase.com Posted on 2009-01-21 15:29:32.0Z
From: "forums.sybase.com" <paperino@libero.it>
Newsgroups: ianywhere.public.general
References: <1175026205.068775.309030@e65g2000hsc.googlegroups.com>
Subject: Re: syntax error when upgrading from ASA.8 to ASA.10 -- error position too long
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49773f5c$1@forums-1-dub>
Date: 21 Jan 2009 07:29:32 -0800
X-Trace: forums-1-dub 1232551772 10.22.241.152 (21 Jan 2009 07:29:32 -0800)
X-Original-Trace: 21 Jan 2009 07:29:32 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:7313
Article PK: 5525

ciao
<ilapanc@gmail.com> ha scritto nel messaggio
news:1175026205.068775.309030@e65g2000hsc.googlegroups.com...

> When upgrading from 8 to 10 the following statement does not work
>>>
>>>create function DBA.dll_Sh_GetBackupRootFolder(out lpDestBuff
>>>char(260),inout nCnt integer)
>>>returns integer
>>>external name 'Sh_GetBackupRootFolder@Sh_DBUtil32.dll'
>>>
> I am getting the error
> Syntax error -- error position too long
>
> It works if I change the out and inout to in only
>
> and idea ?
>
> Thanks
>