Q: How to use CALL SYSTEM USING on PC, Windows?
A: For SQR v2.5 and up: Must use COMMAND.COM file that is pointed to by the COMSPEC environment variable. Make use of the SQR's 'getenv' function to read its value.
LET $COMSPEC=getenv('COMSPEC')
LET $CMD=$COMSPEC||' /C dos_command'
CALL SYSTEM USING $CMD #status
For versions prior to v2.5, you must know the value for COMSPEC and then do:
CALL SYSTEM USING 'C:\DOS\COMMAND.COM /C dos_command' #status