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

RE: [sqr-users] SQR calling another SQR - CALL SYSTEM




One approach would be to write the variables to a file, then have the called
sqr read the SQR #1 created file to set variables for SQR #2.
 
Bruce


-----Original Message-----
From: Mezzullo, Paul [mailto:pmezzull@esboces.org] 
Sent: Thursday, March 27, 2003 4:02 PM
To: SQR RUG (E-mail)
Subject: [sqr-users] SQR calling another SQR - CALL SYSTEM


Hi,

I'm calling an SQR from within another SQR using the code shown below,
everything works fine, except I need to pass variables ( i.e.  $NAME) along 
with the call to the secondary SQR using the CALL SYSTEM command, does 
anyone know how this might be achieved?



let $command_str = 'i:\apps\fs75\sqrbinw\sqrw.exe '
                         || 'c:\user\sqr\POPO006.sqr '
                         || 'ADMIN_TEST/ADMIN_TEST@FIN_DATABASE '
                         || '-ii:\apps\fs75\sqr\ '
                         || '-fc:\ '
                         || '-mi:\apps\fs75\sqr\allmaxes.max '
                         || '-ZIFi:\apps\fs75\sqr\pssqr.ini '

   !* perform the actual operating sytem call

   CALL SYSTEM USING $Command_str #return_status NOWAIT
 



- Thanks
Paul 


_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users