[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: CALLING SQR FROM SQR



On Thu, 28 Oct 1999, cheikh fall wrote:

> Begin-Program
> .......
> Let $connect_string = GETENV('CONSTRNG')
> Let $program = 'program_name.sqr'
> Let $output = 'program_name.lis'
> Let $command = $directory || $program || $connect_string || '-m' ||
> $psoft_directory || 'allmaxes.max' || $output
>
> Call System Using $Command #Status

In the example above, it looks like you also need to space out the
segments of the command line, add the 'SQRW.EXE' with a path in front of
it, get and use the comspec environment variable, and possibly add a
"wait" onto the end of the "call system using" command. There are several
examples in the archives (http://www.sqrug.com/sqr-users/).

When testing, I'd have a line with...
   show $Command
prior to the "call", just to make sure the construction looked correct.

HTH,
-----------------------------------------------------------------------
Donald Mellen  | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/
donm@ontko.com |  "In the beginning, there was nothing, which exploded"