MAI Logon Script stuck at MAIREAD ANY
search cancel

MAI Logon Script stuck at MAIREAD ANY

book

Article ID: 217134

calendar_today

Updated On:

Products

SOLVE: Access Session Management

Issue/Introduction

We've defined logonscripts for users for TSO,IMS,CICS and so on.

In some cases we recognized that although the user is forwarded to the requested session and can use it without any problems the logon script stays active and did not finish.

I recognized that the statements on which the script stucks is always the same

In one case we call $ACSCALL from the logon script and it stucks at statement MAIREAD in line 8270000

which is the code:

&MAIREAD ANY                                                         08270000
&DOWHILE .&MAIFRLU = .SLU                                            08280000
   &IF .&MAIINKEY = .ATTN &THEN +                                    08290000
      &DO                                                            08300000
         &PANEL $ACLRPLA002                                          08310000
         &FLUSH                                                      08320000
      &DOEND                                                         08330000
   &MAICONT CONT                                                     08340000
   &MAIREAD ANY                                                      08350000
&DOEND                                                               08360000

in the other case the statement is included in the logon script

000082 &MAIREAD ANY         
000083 &DOWHILE .&MAIFRLU = .PLU     
000084    &MAIDSFMT STRING &FIRST(1) 
000085    &IF .&FIRST = .F3 &THEN &DO
000086       &MAICONT SLU VIEW=WAIT  
000087       &MAIREAD SLU            
000088       &MAICONT PLU VIEW=WAIT  
000089       &MAIREAD PLU            
000090    &DOEND                     

in this case we tried to change it to &MAIREAD ANY WAIT=180 but no success

Any suggestions how to fix this

Environment

Release : 5.0

Component : CA SOLVE:Access Session Management

Resolution

The script is invoked to ensure clean termination. 
 
. &MAISMODE will return END.
 
Typically scripts start with a &GOTO .MODE&MAISMODE. 
 
&GOTO .MODE&MAISMODE                                              
.MODESKIP                                   -* SKIP MODE  
         
.MODEEND                                                            
  &END                                                              
                                                                   
.MODESTART                                  -* SESSION STARTUP      
  &PARSE ARGS DATA=&MAIREQ