Two problems can occur with the WINP command.
LOOP1 WINP WAIT FOR DATA FROM APPLICATION
SEARCH 'Ready' IS THE READY PROMPT DISPLAYED
BRANCH NE,LOOP1 NO, WAIT LONGER
If the string "Ready" is never sent from the application, the program will go into an endless loop waiting for it to be displayed. Even if the application sends data that the program does not use, the WINP command will tell the program to continue execution. Unless you take measures to prevent an endless loop, the program can go into one if unexpected data is sent from the application.
|
Copyright © 2013 CA.
All rights reserved.
|
|