How to find out in a Script procedure during the logon process to an application which Terminal Model is used

Document ID : KB000117989
Last Modified Date : 23/10/2018
Show Technical Document Details
Introduction:
When you log on to an application using SOLVE:Access you can use a Script NCL procedure to automate entering the userid and the password into the logon screen.
It might happen that you want to know the Model type under which the script NCL is running.
Instructions:
When you log on to an application using SOLVE:Access you can use a Script NCL procedure to automate entering the userid and the password into the logon screen.
It might happen that you want to know the Model type under which the script NCL is running. For this purpose you can use variables &MAICROWS and &MAICCOLS These variables contain the number of columns (&MAICCOLS) and rows (&MAICROWS) in the current MAI session's screen.
The following skeleton of a NCL can be used to find out the Model under which that NCL is running and then do model specific processing:

&IF .&MAICROWS = .24 AND .&MAICCOLS = .80 &THEN &DO
   -*-------------------*                          
   -* THIS IS MODEL 2   *                          
   -*-------------------*                          
   processing for model2 screens
&DOEND                                             
&IF .&MAICROWS = .32 AND .&MAICCOLS = .80 &THEN &DO
   -*-------------------*                          
   -* THIS IS MODEL 3   *                          
   -*-------------------*                          
   processing for model3 screens
&DOEND                                             
&IF .&MAICROWS = .43 AND .&MAICCOLS = .80 &THEN &DO
   -*-------------------*                          
   -* THIS IS MODEL 4   *                          
   -*-------------------*                          
   processing for model4 screens
&DOEND                                             
&IF 0&MAICCOLS > 080 &THEN &DO                     
   -*-------------------*                          
   -* THIS IS MODEL 5   *                          
   -*-------------------*                          
   processing for model5 screens
&DOEND