by Stefan » Mon Mar 04, 2013 5:59 pm
It depends on what you mean by "receive the data".
You cannot receive data entered by a user without having the user press an interrupt key, i.e. ENTER, PF1 to PF24, or some strange attention keys. Only this kind of event leads to a transmission of the 3270 data stream to your terminal emulator.
But if you want to get the data defined by assignment statements in the INIT or PROC section of a panel, you have to use the "ISPEXEC CONTROL NONDISPL ENTER" functions right before your DISPLAY statement. This function suppresses the display of the next (and only this one) panel and simulates the ENTER key as the user response to the NONDISPL processing for the next panel.
You can find more details in the manuals.
If your code leads to errors, please trace your program and have a look especially at the return code of the ISPF service and the content of the special variables zerrsm and zerrlm right after the failing ISPF service.
There are 10 types of people in the world: Those who understand binary, and those who don't.