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

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