TPX Session Management for z/OS

 View Only
  • 1.  TPX - Need logon script/ACL to use with NetMaster

    Posted Jul 05, 2017 09:46 AM

    Does anyone have a TPX login script/ACL for use with NetMaster?



  • 2.  Re: TPX - Need logon script/ACL to use with NetMaster
    Best Answer

    Posted Jul 06, 2017 02:26 AM

    Hi K8MTR,

    I do not have a ACL which can be used for Netmaster but I have a frame which can be used for every application.

    An ACL receives the data streams (panels) from the application and automatically replies to them. To find out which data stream arrives it searches for a characteristic string. If that is found, the desired data is entered and sent back to the application. Then the next data stream arrives and the Ping-Pong goes on.

    So in three steps this is what an ACL does:

    a) Search for characteristic Strings in Datastream from appl.
    b) If string appears, then enter required input and hit ENTER.
    c) Repeat a) and b) if necessary.

    While this is valid for each application you can use this example here and change it so that it fits for Netmaster.

              OPTION     TERM,OFF                                      

              OPTION     FLOW,OFF                                     

              OPTION     MAXI,200                                     

              OPTION     TIME=10,TIMEOUT                              

              WINP                                                    

    *-----------------------------------------------------------------*

    * Search for 'IKJ56700A'                                          

    *-----------------------------------------------------------------*

              SET        A1,0                                         

              SET        A2,3                                          

    IKJ567   NOP                                                     

              SEARCH     IKJ56700A                                    

              BRANCH     EQ,USER                                      

              ADD       A1,1                                         

              COMPARE    A1,A2                                        

              BRANCH     LT,IKJ567                                    

    *-----------------------------------------------------------------*

    * Three failed trials, now end the ACL

    *-----------------------------------------------------------------*

              MSG 'User &USERID could not logon to TSO'             

              BRANCH     ANY,ENDE                                     

    *                                                                  

    *=================================================================*

    * 1. Step: Enter Userid                              

    *=================================================================*

    USER     NOP                                                    

              KEY        &USERID                                      

              ENTER                                                   

    *-----------------------------------------------------------------*

    * Search for 'Acct Nmbr'                                          

    *-----------------------------------------------------------------*

              SET        A1,0                                          

              SET        A2,3                                         

    ACCTNMBR NOP                                                     

              SEARCH    'Acct Nmbr'                                   

              BRANCH     EQ,PASSWORT                                  

              ADD        A1,1                                         

              COMPARE    A1,A2                                        

              BRANCH     LT,ACCTNMBR                                  

    *-----------------------------------------------------------------*

    * Three failed trials, now end the ACL

    *-----------------------------------------------------------------*

              MSG 'User &USERID could not logon to TSO54'             

              BRANCH     ANY,ENDE                                      

    *                                                                

    *=================================================================*

    * 2. Enter Passworts                                        

    *=================================================================*

    PASSWORT NOP                                                     

              KEY        &USERPW                                      

              ENTER                                                   

    *-----------------------------------------------------------------*

    * Search for 'Ready'                                              

    *-----------------------------------------------------------------*

              SET        A1,0                                          

              SET        A2,3                                         

    READY     NOP                                                     

              SEARCH    'READY'                                       

              BRANCH     EQ,PDF                                       

              ADD        A1,1                                         

              COMPARE    A1,A2                                        

              BRANCH     LT,READY                                      

    *-----------------------------------------------------------------*

    * Three failed trials, now end the ACL

    *-----------------------------------------------------------------*

              MSG 'User &USERID could not logon to TSO54'              

              BRANCH     ANY,ENDE                                     

    *                                                                

    *=================================================================*

    * 3. Enter 'pdf'                                            

    *=================================================================*

    PDF       NOP                                                     

              KEY        pdf                                          

              ENTER                                                    

    *                                

    ENDE     NOP                     

              STOP                    

    *                                

    TIMEOUT   NOP                     

              MSG 'ACL TSO timed out'

              STOP            



  • 3.  Re: TPX - Need logon script/ACL to use with NetMaster

    Posted Jul 06, 2017 02:32 AM

    Hi K8MTR,

    when you look at the example the sections 1., 2. and 3. are identical, except of the string searched for. When you use this example for Netmaster it is a good starter to logon without any script so that everything has to be entered manually. During this process check the panels arriving from Netmaster for characteristic strings and note each and every keystroke you do. Then use the sample ACL and change it to your needs. If you have to use the TAB-key to jump into the next input field then use ACL Command "TABF n" where n is the number of fields you jump forward.

    if you have questions regarding this example and how to let it work with Netmaster then please open a case or send me an email (pieal01@ca.com) and we are happy to help you here.

    Regards,

     Alexander



  • 4.  Re: TPX - Need logon script/ACL to use with NetMaster

    Posted Jan 02, 2018 09:43 AM

    At start of this ACL you have some OPTION-Statements:

              OPTION     TERM,OFF                                      

              OPTION     FLOW,OFF                                     

              OPTION     MAXI,200                                     

              OPTION     TIME=10,TIMEOUT  

                             

    They have the following effects:

     

              OPTION     TERM,OFF                                      

    No panel from the application is forwarded to the Terminal. The user does not see flickering screens but a black screen while he wait for the ACL to finish.

     

              OPTION     FLOW,OFF                                     

    No trace messages are written into the TPXLOG. During test of the ACL it can be very helpful to switch on this Option to see which statements the ACL is executing (and which not!).

     

              OPTION     MAXI,200                                     

    This Option restrict the execution to 200 statements to avoid endless loops.

     

              OPTION     TIME=10,TIMEOUT                           

    This Option avoids hang situations - after 10 seconds of no activity processing of the ACL commence at label TIMEOUT.



  • 5.  Re: TPX - Need logon script/ACL to use with NetMaster

    Posted Jan 02, 2018 09:44 AM

    Here you can find more on how to avoid Endless Loops:

    Avoid endless loops in ACL 



  • 6.  Re: TPX - Need logon script/ACL to use with NetMaster

    Posted Jan 24, 2018 02:32 AM