Defining DB2 connections using BAS

To create a DB2® connection definition:

  1. Issue the create primary (CREate) or line (CRE) action command from the DB2CDEF view.
  2. Fill in the fields on the first DB2 connection definition panel (see Figure 39):
    Figure 39. Creating a DB2 connection definition - Page 1
     ----------- Create DB2 Connection Definition for EYUPLX01 Page 1 ---------------
     COMMAND ===>
        Name           ===> db2con05           Version ===> 1
        Description    ===> Test
        RESGROUP       ===>
        User Data      ===>
       CONNECTION ATTRIBUTES
        CONnecterror   ===> SQLCODE            Sqlcode | Abend
        DB2id          ===>
        DB2Groupid     ===>
        MSGQUEUE1      ===> CDB2  MSGQUEUE2     ===>   MSGQUEUE3     ===>
        Nontermrel     ===> YES                Yes | No
        Purgecycle     ===> 00 , 30            0 - 59
        Resyncmember   ===> YES                Yes | No
        SIgnid         ===>
        STANbymode     ===> RECONNECT          Reconnect | Connect | Noconnect
        STATsqueue     ===> CDB2
        TCblimit       ===> 12                 4 - 2000
        THREADError    ===> N906D              N906D | N906 | Abend
     
     PRESS ENTER to create DB2CDEF.
     Enter UP or DOWN to view other screens.
  3. To add the DB2 connection definition to the data repository, press Enter. To continue creating a DB2 connection definition, issue the DOWN command. Otherwise, issue one of the other commands available from this panel.
  4. Fill in the fields in the second DB2 connection definition panel (see Figure 40):
    Figure 40. Creating a DB2 connection definition - Page 2
     ----------- Update DB2 Connection Definition for EYUPLX01 Page 2 ---------------
     COMMAND ===>
      Name                DB2CON05           Version   1
     
      POOL THREAD ATTRIBUTES
      ACcountrec     ===> NONE               None | TXid | TAsk | Uow
      AUTHId         ===>
      AUTHType       ===> USERID             Userid | Opid | Group | Sign | TErm
                                             | TX
      DRollback      ===> YES                Yes | No
      PLAN           ===>
      PLANExitname   ===> DSNCUEXT
      PRiority       ===> HIGH               High | Equal | Low
      THREADLimit    ===> 0003               3-2000
      THREADWait     ===> YES                Yes | No
     COMMAND THREAD ATTRIBUTES
      COMAUTHId      ===>
      COMAUTHType    ===> USERID             Userid | Opid | Group | Sign | TErm
                                             | TX
      COMThreadlim   ===> 0001               0-2000
     
     Press ENTER to update DB2CDEF.
  5. To add the DB2 connection definition to the data repository, press Enter. Otherwise, issue one of the other commands available from this panel.

Related concepts
DB2 connection resource definitions
CICS® Resource Definition Guide
Related tasks
Installing BAS DB2 connection definitions
CICS Resource Definition Guide
CICS Resource Definition Guide
Related reference
DB2 connection definition attributes
[[ Contents Previous Page | Next Page Index ]]