SQR Bits

Make an External Call to the OS or other Programs from SQR

Have you ever wanted to call an external program from your SQR Program?  Well you can do it through the call system using command.

The following code bit can be placed inside of your SQR.  This will call an operating system command or external program from your SQR . 

! --------------------
! - BEGIN CODE BIT
! --------------------

Let $Command_String='mv /tmp/file1.dat /reports/file1.rpt'
    Call System Using $Command_String #Status
If #Status<>0
    Show 'There was an Error executing the command: '  $command
End-If

! --------------------
! - END CODE BIT
! -------------------- 


ORDER TODAY!
More of these Tips can be found in this book!