# save displayed customer ID from screen # save order number from screen input field GET R02C03L08 $CUSTID GET _F1013 $ORDNBR
:LOOP2 SEND 03 # put saved customer ID into field on screen IF *SID C2E0002436 PUT _F0762 $CUSTID SEND ENTER # put saved order number into field on screen PUT _F0222 $ORDNBR SEND ENTER QUIT END-IF GOTO LOOP2
In the above example, when the script-execution button is pressed, the eight characters on the screen at row 2, column 3 on the screen are saved as a local variable called $CUSTID and the contents of the _F1013 field are saved as a local variable called $ORDNBR. F3 is then repeatedly pressed until the screen that has the C2E0002436 Web Option Screen Identifier on it is encountered, at which point the saved $CUSTID value is entered into a field on the screen and Enter is pressed. Then the saved $ORDNBR is entered into a field on that screen, Enter is pressed again and the script ends.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |