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

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

book

Article ID: 117989

calendar_today

Updated On:

Products

SOLVE:Operations Automation SOLVE:Access Session Management SOLVE:FTS SOLVE

Issue/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.

Environment

Release: SLACCS00200-5.0-SOLVE:Access-Session Management
Component:

Resolution

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