You may want an ACL/E program to examine the user's input before submitting it to the application. After an ACL/E program receives input from the user with the INPUT command, the SEARCHN statement can be used to examine the newly entered data. After the data is examined, use a BRANCH statement to determine whether the data should be sent to the application. The SEND command is used to send the data to the application.
For example, the following statements determine whether the user typed the string "HELLO, TPX." If so, the program sends the data entered by the user to the application; otherwise, the program terminates.
INPUT
SEARCHN 'HELLO, TPX'
BRANCH EQ,GO
STOP
GO SEND
STOP
|
Copyright © 2013 CA.
All rights reserved.
|
|