SUSPEND example
The following program prompts for the entry of a 2-letter state abbreviation and lists the clients within that state. If the program fails to return a list of clients, the programmer might insert the SUSPEND command just after the second CLEAR to halt the program so that trouble shooting commands could be issued at the Command window such as:?mState to determine the value in the variable mState, LIST FOR STATE_PROV = "CA", DISPLAY MEMORY, DISPLAY STATUS. Issue the command RESUME when ready to proceed with the remainder of the program:
CLEAR
SET TALK OFF
USE CLIENTS
ACCEPT "Enter 2 letter State abbreviation: " TO mState
CLEAR
SUSPEND // To be removed after troubleshooting
? CENTER( "Clients in " + UPPER( mState ) )
?
SCAN FOR State_Prov = UPPER( mState )
? Company, Contact, Startbal
ENDSCAN
RETURN