[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





what does the $directory variable contain? are you getting any errors with
your code as is?




cheikh fall <fallcm@WFU.EDU> on 28/10/99 03:33:15 PM

Please respond to SQR-USERS@LIST.IEX.NET

To:   Multiple recipients of list SQR-USERS <SQR-USERS@LIST.IEX.NET>
cc:    (bcc: Chad Slattery)

Subject:  CALLING SQR FROM SQR




Hi Guys,
Can anyone help with the proper syntax of calling an SQR from an SQR?
I am on Windows NT4.0 and I use SQR 4.3.4
Here is a part of my code:

Begin-Program
.......
Let $connect_string = GETENV('CONSTRNG')
Let $program = 'C:\program_name.sqr'
Let $output = 'C:\program_name.lis'
Let $command = $directory || $program || $connect_string || '-m' ||
$psoft_directory || 'allmaxes.max' || $output

Call System Using $Command #Status
if #Status !=0
    let $showmsg = 'Error Executing Program ' || $program
    Show $Showmsg
end-if

do Update-Prcs-Run-Status
do Reset

End-Program

Hi Guys,
Can anyone help with the proper syntax of calling an SQR from an SQR?
I am on Windows NT4.0 and I use SQR 4.3.4
Here is a part of my code:


Begin-Program
.......
Let $connect_string = GETENV('CONSTRNG')
Let $program = 'C:\program_name.sqr'
Let $output = 'C:\program_name.lis'
Let $command = $directory || $program || $connect_string || '-m' || $psoft_directory || 'allmaxes.max' || $output

Call System Using $Command #Status
if #Status !=0
    let $showmsg = 'Error Executing Program ' || $program
    Show $Showmsg
end-if

do Update-Prcs-Run-Status
do Reset

End-Program