Returns the name of the application acting as the PLU on the MAI session.
Returns the name of the VTAM application acting as the PLU on the MAI session (that is, the application logged on to).
Example: &MAIAPPL
&IF &MAIAPPL = TSO &THEN &GOTO .TSO &APPL = &SUBSTR &MAIAPPL 1 3 &IF &APPL = TSO &THEN &GOTO .TSO
Note: The value of &MAIAPPL can change during the session if the application performs a VTAM CLSDST/PASS operation to pass the MAI session to another application. For instance, &MAIAPPL might contain TSO at session start, then change to TSO0003 during the logon process.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |