COPY PROCEDURES Command Example
The following example opens the testdata
database, and uses COPY PROCEDURES to copy the procedures to a temporary text file named Myproc.txt. MODIFY FILE is used to open the temporary text file, which will be empty if there are no stored procedures in the database.
If there are no stored procedures in the database, you can run the example for APPEND PROCEDURES to add a procedure to database.
CLOSE DATABASES
OPEN DATABASE (HOME(2) + 'data\testdata')
COPY PROCEDURES TO myproc.txt && Copy stored procedures to a file
MODIFY FILE myproc.txt && Open the file
DELETE FILE myproc.txt && Erase the file