Previous Topic: #ACCEPT Status CodesNext Topic: #ATTACH—instructs the system to initiate a new task


#ACCEPT Example

The following example of the #ACCEPT statement retrieves the user ID of each user signed on to the logical terminal associated with the current task. This information is placed into the field USERSL2, which is defined in the application program's variable storage.

#ACCEPT TYPE=USERID,FIELD=USERSL2