[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: [Call Function Problem]
- Subject: Re: [Call Function Problem]
- From: Vishal Nayak <vishme@NETSCAPE.NET>
- Date: Mon, 23 Nov 1998 10:41:36 PST
Hi Ravi,
Well, your problem is quite unclear. Why would you want to call another SQR
Program from an SQR Program? WEll, typically, the CALL function is used to
call an external routine, or some system command like a directory listing.
>From the code that you have pasted in the mail, I get a feeling that you are
doing this because you either want to connect to a different database, or you
want to connect using a different user name.
If this is the case, simply use the "connect" command in SQR. The syntax can
be looked up in the help file, but it allows you to make a database connection
from within your existing sqr program under a different userid/password.
You can write the common routines that were written in he other SQR program
you were trying to call, and write them into a SQC file. Then, simply
"include" this file in both the programs, and you can share the common
procedures, thus avoiding the trouble of coding twice.
HTH,
Vish.
owner-sqr-users@list.iex.net wrote:
Hi all
I have a problem with calling SQR from another SQR.
Actually my SQRs are in local drive andmy SQRW.exe is on the Server.
so when i used
call system using 'P:\hr701\sqrbinw\sqrw.exe C:\PS\SQR\xxx.sqr
userid/password@DEV -ip:\hr701\sqr\ ' #s
and i also tried like this
call system using 'P:\hr701\sqrbinw\sqrw.exe p:\hr700\xxx.sqr
userid/password@DEV -ip:\hr701\sqr\ ' #s
and i also tried
call system using '/hr701/sqrbinw/sqrw.exe xxx.sqr userid/password@DEV
' #s
but nothing is working every time its giving that
Unable to open 'setenv.sqc' ..even i commented this line its giving same
problem...
will you guys help me ..
Thanks in advance.
Ravi
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
____________________________________________________________________
More than just email--Get your FREE Netscape WebMail account today at http://home.netscape.com/netcenter/mail