SOLVE

 View Only

Under which Model is the NCL running?

  • 1.  Under which Model is the NCL running?

    Posted Oct 22, 2018 10:03 AM

    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 micht 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