home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: OtherApp / OtherApp.zip / aping.zip / aping.doc < prev    next >
Text File  |  1993-05-31  |  105KB  |  2,037 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.   COPYRIGHT
  8.  
  9.   The program to which this file relates contains source code made available by
  10.   IBM on an AS IS basis.  Anyone receiving the source code is considered to be
  11.   licensed under IBM copyrights to use the IBM-provided source code in any way
  12.   he or she deems fit, including copying it, compiling it, modifying it and
  13.   redistributing it, with or without modifications.  No license under IBM
  14.   patents or patent applications is to be implied from this copyright license.
  15.  
  16.   Any user of the program should understand that IBM cannot provide technical
  17.   support for the program and will not be responsible for any consequences of
  18.   use of the program.
  19.  
  20.   Any person who transfers the source code or any modified version of the
  21.   source code must include the IBM copyright notice, this paragraph and the
  22.   preceding two paragraphs in documentation accompanying the source code.
  23.  
  24.  
  25.   AUTHOR
  26.  
  27.     Peter J. Schwaller
  28.     Internet:     pjs@vnet.ibm.com
  29.     CompuServe:   76711,371
  30.     IBM VNET:     PJS at RALVM6
  31.     Phone:        (919) 254-4376
  32.     IBM Tie-line: 8-444-4376
  33.     Date:         May 6, 1993
  34.     Version:      2.37
  35.  
  36.   +---------------------------------------------------------------------------+
  37.   |                                                                           |
  38.   | Availability                                                              |
  39.   |                                                                           |
  40.   +---------------------------------------------------------------------------+
  41.  
  42.   This sample program and source files are also available on CompuServe through
  43.   the APPC Information Exchange.  To get to the APPC forum just type 'GO APPC'
  44.   from any CompuServe prompt.  The samples are available in the Sample Programs
  45.   library section.  Just search on the keyword CPICPGMS to find all the samples
  46.   in this series.
  47.  
  48.   Updates for the sample programs and support for many more CPI-C platforms
  49.   will also be made available on CompuServe.
  50.  
  51.   +---------------------------------------------------------------------------+
  52.   |                                                                           |
  53.   | Terminology                                                               |
  54.   |                                                                           |
  55.   +---------------------------------------------------------------------------+
  56.  
  57.  
  58.  
  59.  
  60.  
  61.   TERM           DEFINITION
  62.  
  63.   TRANSACTION    An exchange between two programs that accomplishes a
  64.                  particular action or result.  Transaction programs are written
  65.                  in pairs, with both sides of the transaction cooperating to
  66.                  achieve a result.  The sides of a transaction program are
  67.                  known as "client" and "server."
  68.  
  69.                  Examples of transactions are:
  70.  
  71.                  o   sending a simple message
  72.  
  73.                  o   executing a specified procedure or task
  74.  
  75.                  o   updating a database entry
  76.  
  77.   CLIENT         Identifies the initiator of a transaction.  The client must
  78.                  specify the name of the other side of the transaction, known
  79.                  as the server.  The term client can refer to either a program
  80.                  or a computer.
  81.  
  82.   SERVER         Identifies the receiver of a transaction.  The server does not
  83.                  need to know the name of the client side of the transaction.
  84.  
  85.   PARTNER COMPUTER
  86.                  Identifies the "other" side of a transaction.  The partner of
  87.                  the client is the server, and vice versa.
  88.  
  89.   DESTINATION    The name used on the client to identify the server.
  90.  
  91.   APPC PLATFORM  Refers to the APPC implementation code running on a given
  92.                  computer.
  93.  
  94.   +---------------------------------------------------------------------------+
  95.   |                                                                           |
  96.   | User's Guide                                                              |
  97.   |                                                                           |
  98.   +---------------------------------------------------------------------------+
  99.  
  100.  
  101.   +---------------------------------------------------------------------------+
  102.   |                                                                           |
  103.   | What Is APING?                                                            |
  104.   |                                                                           |
  105.   +---------------------------------------------------------------------------+
  106.  
  107.   APING is a CPI-C program that should be the first program you configure and
  108.   run when first configuring APPC on your computer.  APING exchanges data
  109.   packets with a partner computer, and times how long the data transfer takes.
  110.   It can be used to get a coarse measure of the session setup time between two
  111.   computers, and the throughput and turnaround time on that APPC session.
  112.   APING can be used to determine whether a session can be set up between two
  113.   computers, and will display extensive error information if session allocation
  114.   fails.
  115.   APING is made up of two transaction programs; APING, which runs on the client
  116.   side, and APINGD, which runs on the server side.
  117.  
  118.   +---------------------------------------------------------------------------+
  119.   |                                                                           |
  120.   | Using APING                                                               |
  121.   |                                                                           |
  122.   +---------------------------------------------------------------------------+
  123.  
  124.   The simplest way to use APING is to specify only the partner destination
  125.   name.  For example, you can start APING with:
  126.  
  127.     APING destination
  128.  
  129.   What you actually specify in place of "destination" is described below.
  130.  
  131.   Running the APING program will result in a session allocation, which will be
  132.   timed.  Then APING will send 100 bytes to the partner, and receive the same
  133.   number of bytes, which will also be timed.  This will be done twice, since
  134.   the first timing is likely to include process startup time on the partner
  135.   side.
  136.  
  137.   The following describes all of the APING parameters:
  138.  
  139.     APING destination [optional parameters]
  140.  
  141.   The destination is the only required parameter.  You may specify any number
  142.   of the additional parameters.  If you specify any parameter more than once,
  143.   only the last parameter value will be used.
  144.  
  145.   PARAMETER EXPLANATION
  146.  
  147.   destination
  148.             Identifies the partner computer on which the APINGD server program
  149.             runs.
  150.  
  151.             May be either a CPI-C symbolic destination name or a partner LU
  152.             name.
  153.  
  154.             If the destination is a CPI-C symbolic destination name, it must be
  155.             1 to 8 characters and must be configured in your platform's
  156.             symbolic destination name table (see Configuration Guide below).
  157.  
  158.             If the destination is a partner LU name, the format varies from
  159.             platform to platform.  See the Configuration Guide section for your
  160.             platform for more information about configuring and specifying
  161.             partner LU names.
  162.  
  163.   -m mode_name
  164.             mode name (default: "#INTER")
  165.  
  166.   -t tp_name
  167.             the TP name to start on the partner (default: "APINGD")
  168.  
  169.   -s N
  170.             N is the size of the packet transmitted (default: 100 bytes)
  171.  
  172.             This is the number of bytes sent in each Send call by each side.
  173.             You may specify a value from 0 to 32767.
  174.  
  175.   -i N
  176.             N is the number of iterations done (default: 2)
  177.  
  178.             The number of iterations will be seen in the output as the number
  179.             of sets of timing information that is shown.  You may want to
  180.             increase this number to get a larger sample of timings.  You may
  181.             specify a value from 1 to 32767.
  182.  
  183.   -c N
  184.             N is the number of consecutive packets sent by each side (default:
  185.             1)
  186.  
  187.             This is the number of Send calls issued by each side before giving
  188.             the partner permission to send.  For each iteration, each side will
  189.             make this number of Sends, each of the specified packet size.  You
  190.             may specify a value from 1 to 32767.
  191.  
  192.   -u userid
  193.             This is the userid that will be sent to the partner.  The userid
  194.             can be 1-8 characters in length.  You should use this parameter
  195.             when the destination transaction program has been configured to
  196.             require security.  One indication that the destination transaction
  197.             program requires security is a CPI-C return code of
  198.             XC_SECURITY_NOT_VALID.
  199.  
  200.             Specifying this parameter implies the conversation will use CPI-C
  201.             security=PROGRAM.  A password must also be specified.  If a userid
  202.             is specified without a password, APING will prompt the user for a
  203.             password.
  204.  
  205.   -p password
  206.             This is the password that will be send to the partner.  The
  207.             password can be 1-8 characters in length.
  208.  
  209.   -n
  210.             This parameter forces APING to use NO security on the conversation.
  211.             (CPI-C security=NONE).  This should be used when you receive a
  212.             CPI-C return code of XC_SECURITY_NOT_VALID, but the destination
  213.             transaction program is not configured to require security.
  214.  
  215.   -1
  216.             Only send data from client to server (no echo).  Note that the flag
  217.             is a numeral one, not the letter L.
  218.  
  219.   The following illustrates the simplified line flows that result when APING is
  220.   started with the following parameters:
  221.  
  222.     APING destination -s 10000 -i 2 -c 4
  223.     LOCAL COMPUTER                    PARTNER COMPUTER
  224.     Allocate         ---------------> Accept Conversation
  225.     Confirm          ---------------> Confirmed
  226.     Send(10000)      ---------------> Receive
  227.     Send(10000)      ---------------> Receive
  228.     Send(10000)      ---------------> Receive
  229.     Send(10000)      ---------------> Receive
  230.     Receive          <--------------- Send(10000)
  231.     Receive          <--------------- Send(10000)
  232.     Receive          <--------------- Send(10000)
  233.     Receive          <--------------- Send(10000)
  234.     Send(10000)      ---------------> Receive
  235.     Send(10000)      ---------------> Receive
  236.     Send(10000)      ---------------> Receive
  237.     Send(10000)      ---------------> Receive
  238.     Receive          <--------------- Send(10000)
  239.     Receive          <--------------- Send(10000)
  240.     Receive          <--------------- Send(10000)
  241.     Receive          <--------------- Send(10000)
  242.     Deallocate
  243.  
  244.   +---------------------------------------------------------------------------+
  245.   |                                                                           |
  246.   | APING Output                                                              |
  247.   |                                                                           |
  248.   +---------------------------------------------------------------------------+
  249.  
  250.   The output from the APING program is similar to the following:
  251.  
  252.     APING version 2.37 APPC echo test with timings.
  253.       by Peter J. Schwaller (pjs@ralvm6.vnet.ibm.com)
  254.  
  255.     Allocate duration:                            0 ms
  256.  
  257.     Program startup and Confirm duration:       720 ms
  258.  
  259.             Duration        Data Sent        Data Rate        Data Rate
  260.             (msec)          (bytes)          (KB/s)           (Mb/s)
  261.             --------        ---------        ---------        ---------
  262.                   60            64000           1041.7            8.333
  263.                   30            64000           2083.3           16.667
  264.     Totals:       90           128000           1388.9           11.111
  265.  
  266.     Duration statistics:   Min = 30   Ave = 45   Max = 60
  267.  
  268.   The Allocate duration is how long it takes for the Allocate call to return to
  269.   the program.  The next call in APING is a Confirm call, which is timed to
  270.   determine the approximate program startup time of the partner transaction
  271.   program.
  272.  
  273.   The number of "Ping duration" lines will be equal to the number of iterations
  274.   requested (see the -i parameter above).  In this case, the default of 2 was
  275.   used.
  276.  
  277.   The last output line provides a summary of the ping duration lines already
  278.   displayed.  The minimum, maximum and average ping duration is displayed in
  279.   milliseconds.  The overall data rate for all pings is calculated and
  280.   displayed.
  281.  
  282.   Note that on some platforms the timer resolution is one second, or 1000
  283.   milliseconds.
  284.  
  285.   +---------------------------------------------------------------------------+
  286.   |                                                                           |
  287.   | Configuration Guide for APING                                             |
  288.   |                                                                           |
  289.   +---------------------------------------------------------------------------+
  290.  
  291.   The APING program consists of two sides:  the client computer side and the
  292.   server computer side.  On the client computer side, the user starts up the
  293.   APING program and specifies what actions should be taken.  As a result, the
  294.   APINGD program is started on the server computer side.  The APING and APINGD
  295.   programs then communicate using CPI-C and complete the transaction.
  296.  
  297.   In order to get the client computer and the server computer to talk to each
  298.   other, both computers must be configured.  This configuration involves
  299.   defining certain APPC information to the APING programs and to the APPC
  300.   platform on the computer.
  301.  
  302.   The rest the Configuration Guide is divided into the following sections:
  303.  
  304.   o   APPC Configuration Overview
  305.  
  306.       This section describes the APPC information that must be provided to the
  307.       APPC platform.  If you are not familiar with APPC terminology or
  308.       configuration, you should read this section.
  309.  
  310.   o   Configuration Information for Specific Platforms
  311.  
  312.       These are the actual steps that should be done on the client computer and
  313.       server computer.  The directions are grouped by APPC platform.  You
  314.       should find the section for your platforms, and follow the steps
  315.       indicated.  The following platforms are described in this Configuration
  316.       Guide:
  317.  
  318.       -   Networking Services/DOS
  319.  
  320.       -   Networking Services/2 or Extended Services
  321.  
  322.       -   VM SP 6 or VM ESA
  323.  
  324.       -   AS/400
  325.  
  326.       -   MVS
  327.  
  328.       -   AIX SNA Services
  329.  
  330.  
  331.   +---------------------------------------------------------------------------+
  332.   |                                                                           |
  333.   | APPC Configuration Overview                                               |
  334.   |                                                                           |
  335.   +---------------------------------------------------------------------------+
  336.  
  337.   In order to successfully communicate with APPC from one computer to another,
  338.   you need to configure some information in your APPC platform.  This
  339.   information consists of:
  340.  
  341.   o   How to physically connect to another computer.
  342.  
  343.       You tell your APPC platform how to physically connect to another computer
  344.       by defining a link.  The link definition tells APPC information about how
  345.       to connect to the partner computer, including data link control
  346.       information.  The data link control represents the physical connection
  347.       (token-ring, SDLC, Ethernet, etc.) between two computers.  To connect to
  348.       the partner computer, the APPC link definition specifies both a data link
  349.       control and addressing information specific to that data link control.
  350.       For example, if you are using token ring as your data link control, you
  351.       will need to specify a token ring address in your link definition.  Some
  352.       data link controls, may not require any address information, since the
  353.       partner computer is implied to be on the other end of the physical
  354.       connection.  This is common with SDLC leased lines.
  355.  
  356.   o   How to identify and find the correct server computer.
  357.  
  358.       Computers are identified in APPC by their fully qualified LU name.  The
  359.       fully qualified LU name consists of two parts: a network name and an LU
  360.       name, concatenated with a period.  For example:
  361.  
  362.           USIBMNR.NR55069I
  363.  
  364.       Both the client and server computers must have fully qualified LU names
  365.       defined.
  366.  
  367.       LU names are viewed relative to the computer on which they are defined:
  368.       there are local LUs and there are partner LUs which are on partner
  369.       computers.  The local LU name for any given computer is the partner LU
  370.       name as viewed from another computer, and vice versa.
  371.  
  372.       Each APPC platform must define at least one local LU, which must be
  373.       unique within the network.  Since there are only up to 8 characters with
  374.       which to create a unique LU name, this can be somewhat challenging in
  375.       networks with many computers.  Some possible naming conventions for LUs
  376.       include:
  377.  
  378.       -   Assigning consecutive LU names (alphabetically increasing) under
  379.           central administration control.
  380.  
  381.       -   Incorporating something that is already unique to each computer.
  382.  
  383.           Examples include:
  384.  
  385.           --  Serial number of the computer
  386.  
  387.           --  Person number of the user
  388.  
  389.           --  Unique userid of the user
  390.  
  391.       On some APPC platforms, you must predefine the list of partner LUs that
  392.       the computer will be able to communicate with.  Other platforms allow you
  393.       to use any fully qualified LU name without having defined it beforehand.
  394.       The APPC platform will then dynamically find that LU in the network.
  395.  
  396.   o   What kind of connection should be made with the server computer.
  397.  
  398.       When the APING client program requests a connection with a partner LU,
  399.       the APPC platform establishes what is called a session between the local
  400.       LU and the partner LU.  The simplest session that can be established
  401.       occurs when the client computer and the server computer are directly
  402.       connected with a single APPC link.  The session goes directly from the
  403.       client computer to the server computer.
  404.  
  405.       If your network is larger and more complex, the client computer may be
  406.       connected to a network node computers rather than directly to the server
  407.       computer.  In this case, the session that is established may pass through
  408.       other computers in the network.  To add to the complexity, there may be
  409.       different paths through the network.
  410.  
  411.       The network will always choose the best path through the network for your
  412.       application.  Since different applications have different needs, APPC
  413.       provides a way for the application to specify the route characteristics
  414.       that are best for that application.  The application specifies a mode
  415.       name which contains all the routing characteristics required by the
  416.       application.  The characteristics associated with a mode include:
  417.  
  418.       -   Turnaround time
  419.  
  420.           How fast must data get through the network?
  421.  
  422.       -   Throughput
  423.  
  424.           How much data can get through the network?
  425.  
  426.       -   Cost
  427.  
  428.           Are you paying for physical connections between computers?
  429.  
  430.       Two modes which are commonly supplied with APPC platforms are #BATCH and
  431.       #INTER.  The definition for #BATCH specifies a path with good throughput
  432.       characteristics.  The definition for #INTER specifies a path with good
  433.       turnaround time.  If your platform does not supply a definition for these
  434.       modes, you can either define them on your platform, or use some other
  435.       mode that is already defined by specifying the mode name when you start
  436.       the APING client program.
  437.  
  438.   o   How to identify and start the correct program on the server computer.
  439.       When the client computer establishes a connection with the server
  440.       computer, the server computer must make that connection with a particular
  441.       server program.  To help the server computer identify the server program,
  442.       a transaction program name is sent from the client computer.
  443.  
  444.       The server program is identified by this transaction program (TP) name.
  445.       The TP name is a 1 to 64 byte string.  Because the actual executable
  446.       program names can be different on various computers, the TP name is used
  447.       as a common identifier or an alias for the real program name.  In many
  448.       cases, the TP name and the real program name will be identical.
  449.  
  450.       On the client computer, the TP name is specified by the APING client
  451.       program and is the first thing sent by the client APPC platform to the
  452.       server APPC platform.  The client computer does need to have a TP name
  453.       definition configured.
  454.  
  455.       The server APPC platform then needs to know how to correlate the received
  456.       TP name with an actual program.  This is done through a TP definition,
  457.       which tells the server APPC platform which program should be started and
  458.       the application parameters and characteristics associated with the
  459.       program.  Some common things that can be configured are:
  460.  
  461.       -   The name and location (e.g., subdirectory) of the server program
  462.  
  463.       -   A list of users who can use the server program
  464.  
  465.       -   Parameters that should be passed to the program when it is started
  466.  
  467.   +---------------------------------------------------------------------------+
  468.   |                                                                           |
  469.   | Platform Specific Configuration                                           |
  470.   |                                                                           |
  471.   +---------------------------------------------------------------------------+
  472.  
  473.   The following steps have been described for each APPC platform that APING has
  474.   been tested with (see the list above in the Configuration Guide for APING
  475.   section).
  476.  
  477.   Each platform will have the following information:
  478.  
  479.   o   General configuration tools
  480.  
  481.       -   Where and how configuration changes are made
  482.  
  483.       -   How to make your configuration changes take effect
  484.  
  485.   o   Configuration changes common to client and server computers
  486.  
  487.   o   Configuration changes specific to the client computer
  488.  
  489.       How to specify and identify where your server is and how to reach your
  490.       server.
  491.  
  492.   o   Configuration changes specific to the server computer
  493.       How to specify which clients can use the server and what server program
  494.       to start when the TP arrives.
  495.  
  496.   Each platform also requires data link control configuration information.  In
  497.   all of the examples, token ring data link control configuration will be
  498.   shown.  For information about configuring other data link controls, see the
  499.   documentation for the specific platform.
  500.  
  501.   +---------------------------------------------------------------------------+
  502.   |                                                                           |
  503.   | Configuration for Networking Services/DOS                                 |
  504.   |                                                                           |
  505.   +---------------------------------------------------------------------------+
  506.  
  507.   o   General configuration tools
  508.  
  509.       -   Where and how configuration changes are made
  510.  
  511.           All configuration changes for Networking Services/DOS are made in the
  512.           Networking Services/DOS configuration file.  To make changes to your
  513.           configuration, you must edit the Networking Services/DOS
  514.           configuration file according to the directions below.  The default
  515.           configuration file is named CONFIG.NSD and is usually in the \NSD
  516.           subdirectory.  You may use another file name, but you will have to
  517.           specify that name explicitly when you use the NSD command (see
  518.           below).
  519.  
  520.       -   How to make your configuration changes active
  521.  
  522.           After you have edited your Networking Services/DOS configuration
  523.           file, you should use the NSD command to start NSD and activate your
  524.           configuration changes.  If you are using the default configuration
  525.           file, you should use:
  526.  
  527.             nsd start
  528.  
  529.           If you are using another Networking Services/DOS configuration file,
  530.           you should use:
  531.  
  532.             nsd start FILENAME
  533.  
  534.   o   Configuration changes common to client and server computers
  535.  
  536.       -   Defining a local LU
  537.  
  538.           Include an "nsdn" statement in your Networking Services/DOS
  539.           configuration file:
  540.  
  541.             nsdn NETWORK_NAME.CLIENT_LU
  542.  
  543.           The name specified by the "nsdn" entry must be unique throughout your
  544.           network.
  545.  
  546.       -   Defining a partner LU
  547.           --  If you are directly connected to your partner computer, include
  548.               "nsdc" and "trld" entries in your Networking Services/DOS
  549.               configuration file.  You must specify both the partner LU name
  550.               and the token ring destination address of the partner computer.
  551.               For example:
  552.  
  553.                 nsdc lan
  554.                 trld SERVER_LU,400000000001
  555.  
  556.           --  If you are connected to your partner computer through a network
  557.               node, "nsdc," and  "trld" entries in your Networking Services/DOS
  558.               configuration file.  For example:
  559.  
  560.                 nsdc lan
  561.                 trld NN_LU,600000000002
  562.  
  563.               In this example, we specify a physical connection to our network
  564.               node, specifying the LU name of the network node (NN_LU) and the
  565.               token ring destination address.  We then specify that the LU name
  566.               SERVER_LU can be reached through the network node NN_LU.
  567.  
  568.           In both cases, change the token ring destination address in the
  569.           example to the address of the partner computer you are connecting to.
  570.  
  571.       -   Defining a link to a partner computer or to the network node
  572.  
  573.           The definition of the link has already been done in the partner LU
  574.           section above.
  575.  
  576.       -   Defining a mode
  577.  
  578.           Since Networking Services/DOS has already defined the IBM supplied
  579.           mode names in the supplied MODE.NSD file, including #INTER, no mode
  580.           definitions on Networking Services/DOS are needed for APING.
  581.  
  582.   o   Configuration changes specific to the client computer
  583.  
  584.       No special configuration is needed for Networking Services/DOS to
  585.       configure the APING client.
  586.  
  587.   o   Configuration changes specific to the server computer
  588.  
  589.       Consult your Networking Services/DOS documentation for information on how
  590.       to run server programs in a DOS or Windows environment.
  591.  
  592.   +---------------------------------------------------------------------------+
  593.   |                                                                           |
  594.   | Configuration for Extended Services and Networking Services/2 (OS/2)      |
  595.   |                                                                           |
  596.   +---------------------------------------------------------------------------+
  597.  
  598.   o   General configuration tools
  599.  
  600.       -   Where and how configuration changes are made
  601.           To configure Extended Services and Networking Services/2 use either
  602.           the Configuration Management panels or edit the Node Definitions File
  603.           (NDF).  Although the following examples show Node Definitions File
  604.           commands, you can enter the same information on the Configuration
  605.           Management panels.  Your Node Definitions File file will have the
  606.           same filename as your Communications Manager configuration file, but
  607.           with a file extension of "NDF."
  608.  
  609.       -   How to make your configuration changes active
  610.  
  611.           You must verify the configuration file after changes are made to the
  612.           configuration.  If you have edited the Node Definitions File, run
  613.           APPNV from an OS/2 Command prompt with the /e option to verify and
  614.           update your configuration.  For example:
  615.  
  616.             appnv WRKBASE.NDF /e
  617.  
  618.   o   Configuration changes common to client and server computers
  619.  
  620.       -   Defining a local LU
  621.  
  622.           During the Extended Services and Networking Services/2 installation
  623.           process, at least one local LU was configured.  This is the LU that
  624.           will be used when you run the APING client.  When your computer is
  625.           acting as a server, this is the LU name that should be configured on
  626.           the client platform as the partner LU.
  627.  
  628.           You can find your local LU in the DEFINE_LOCAL_CP command In the
  629.           following Node Definitions File excerpt:
  630.  
  631.             define_local_cp
  632.                 fq_cp_name(NETWORK_NAME.CLIENT_LU)
  633.                 cp_alias(mylu)
  634.                 node_id(x'50000')
  635.                 node_type(en);
  636.  
  637.           The local LU is NETWORK_NAME.CLIENT_LU.
  638.  
  639.       -   Defining a partner LU
  640.  
  641.           Since both Extended Services and Networking Services/2 support APPN,
  642.           you do not need to define partner LU names.
  643.  
  644.           When your computer is the client, you will simply need to specify the
  645.           fully qualified name of your partner LU.  This fully qualified name
  646.           includes the network name and LU name concatenated with a period.  To
  647.           enable any partner to call you when your computer is a server, make
  648.           sure your Node Definitions File contains the following:
  649.  
  650.             define_defaults
  651.                 implicit_inbound_plu_support(yes);
  652.  
  653.           An additional feature of defining partner LUs is that you can provide
  654.           an alias for the actual partner LU name.  For example, you could
  655.           define "server" to be an alias for NETWORK_NAME.SERVER_LU.  Alias are
  656.           case sensitive; "SERVER" is a different alias than "server."
  657.  
  658.           If you choose to define partner LUs, either to provide an alias for
  659.           use when running the APING client, or to restrict the names of
  660.           partner clients that can contact you, use a "define_partner_lu"
  661.           command as follows:
  662.  
  663.             define_partner_lu
  664.                 fq_partner_lu_name(NETWORK_NAME.SERVER_LU)
  665.                 partner_lu_alias(server);
  666.  
  667.       -   Defining a link to a partner computer or to the network node
  668.  
  669.           --  To define a link directly to your partner, your Node Definitions
  670.               File should contain a "define_link" command,
  671.  
  672.                 define_logical_link
  673.                     link_name(link)
  674.                     fq_adjacent_cp_name(NETWORK_NAME.SERVER_LU)
  675.                     adjacent_node_type(len)
  676.                     dlc_name(ibmtrnet)
  677.                     adapter_number(0)
  678.                     destination_address(x'400000000001')
  679.                     cp_cp_session_support(no)
  680.                     activate_at_startup(no);
  681.  
  682.           --  To define a link to your network node, your Node Definitions File
  683.               should contain a "define_link" command,
  684.  
  685.                 define_logical_link
  686.                     link_name(link)
  687.                     adjacent_node_type(nn)
  688.                     dlc_name(ibmtrnet)
  689.                     adapter_number(0)
  690.                     destination_address(x'600000000002')
  691.                     cp_cp_session_support(yes)
  692.                     activate_at_startup(yes);
  693.  
  694.               Note that the CP name of the network node does not have to be
  695.               specified on the "define_link" command.
  696.  
  697.           In both cases, change the destination address in the example to the
  698.           address of the partner computer you are connecting to.
  699.  
  700.       In order to allow other computers to configure links to your computer,
  701.       you will need to give them your local token ring address.  To find out
  702.       your own token ring address, look in the ACSLAN.LOG file in the \CMLIB
  703.       subdirectory if you are using Networking Services/2 or the LANTRAN.LOG
  704.       file in the \IBMCOM subdirectory if you are using Extended Services.
  705.       Your token ring address appears in a line similar to the following:
  706.  
  707.         Adapter 0 is using node address 400000000000.
  708.  
  709.   o   Configuration changes specific to the client computer
  710.  
  711.       No special configuration is needed for Extended Services or Networking
  712.       Services/2 to configure the APING client.
  713.  
  714.   o   Configuration changes specific to the server computer
  715.  
  716.       -   Defining the TP
  717.  
  718.           Configure the APINGD program as follows.  Make sure the "filespec"
  719.           specifies the directory where the APINGD.EXE program resides.
  720.  
  721.             define_tp
  722.                 tp_name(APINGD)
  723.                 filespec(C:\SAMPLES\APING\APINGD.EXE)
  724.                 tp_operation(nonqueued_am_started)
  725.                 program_type(vio_windowable);
  726.  
  727.           The "tp_operation" field indicates that a new copy of the APINGD.EXE
  728.           program should be started for every new client.  The "program_type"
  729.           field indicates that the program should be run in an OS/2 Window.
  730.  
  731.           Note that TP names are case sensitive.  The APINGD must be typed in
  732.           all upper case.
  733.  
  734.   +---------------------------------------------------------------------------+
  735.   |                                                                           |
  736.   | Configuration for VM                                                      |
  737.   |                                                                           |
  738.   +---------------------------------------------------------------------------+
  739.  
  740.   +--- WARNING ---------------------------------------------------------------+
  741.   |                                                                           |
  742.   | The configuration instructions for VM have not been fully tested.  If you |
  743.   | have problems, please contact the author (indicated at the top of this    |
  744.   | file).                                                                    |
  745.   |                                                                           |
  746.   +---------------------------------------------------------------------------+
  747.  
  748.   o   General configuration tools
  749.  
  750.       -   Where and how configuration changes are made
  751.  
  752.           There are four places where configuration changes are required for
  753.           VM:
  754.  
  755.           1.  The CP directory entry must be changed to include definition of
  756.               the server.
  757.  
  758.           2.  The client must define a local directory entry that describes the
  759.               path that VTAM uses to find the server.
  760.  
  761.           3.  The APPC VTAM Service Machine (AVS) must be configured to know
  762.               how to map requests between VTAM and local resources.
  763.           4.  VTAM must be configured so that it knows about the APPC gateway
  764.               as well as any remote clients or servers.
  765.  
  766.           More detailed information on the configuration can be found in
  767.           CONNECTIVITY PLANNING, ADMINISTRATION, AND OPERATION, SC24-5448.
  768.  
  769.       -   How to make configuration changes active
  770.  
  771.           Once CP directory entries are put online (DIRMAINT is typically used
  772.           for this), the server is ready.  After adding directory entries to
  773.           the local directory the SET COMDIR command must be issued to activate
  774.           the changes.  The major nodes of VTAM affected by the changes must be
  775.           restarted for VTAM changes to become active. AVS can either be
  776.           restarted, or commands can be issued to the virtual machine to make
  777.           any new gateways known.
  778.  
  779.   o   Configuration common to client and server computers
  780.  
  781.       -   Define AVS Gateway LU to VTAM
  782.  
  783.           The AVS gateway is a gateway between local resources (programs
  784.           running in virtual machines) and the VTAM network. To communicate
  785.           through VTAM it acts as a VTAM application. It therefore must be
  786.           defined in a VTAM application major node. An example is shown below:
  787.  
  788.           APLAVS   VBUILD  TYPE=APPL
  789.           SERVER_LU APPL  APPC=YES,                                    X
  790.                          AUTH=(ACQ),                                   X
  791.                          ACBNAME=SERVER_LU,                            X
  792.                          AUTOSES=0,                                    X
  793.                          AUTHEXIT=YES,                                 X
  794.                          MODETAB=APPCMODE,                             X
  795.                          DLOGMOD=#INTER,                               X
  796.                          PARSESS=YES,                                  X
  797.                          SECACPT=NONE
  798.  
  799.  
  800.           This definition uses a logmode name of #INTER. This must be the mode
  801.           used on the bind from the client, if it is in the VTAM network.
  802.  
  803.           Logmode #INTER must also be assembled and link-edited into a
  804.           simulated partitioned data set (PDS) accessible by VTAM. In the
  805.           example below it would be in member APPCMODE. The PDS used is
  806.           typically VTAMUSER.  The following sample mode table contains
  807.           definitions for typical APPC modes.
  808.  
  809.           APPCMODE MODETAB
  810.           **********************************************************************
  811.           *        LOGMODE TABLE ENTRY FOR RESOURCES CAPABLE OF ACTING         *
  812.           *                                AS LU 6.2 DEVICES      @R495812 @KFC*
  813.           **********************************************************************
  814.           SNASVCMG MODEENT LOGMODE=SNASVCMG,FMPROF=X'13',TSPROF=X'07',           *
  815.                          PRIPROT=X'B0',SECPROT=X'B0',COMPROT=X'D0B1',            *
  816.                          RUSIZES=X'8686',ENCR=B'0000',SSNDPAC=7,          *@KFC* *
  817.                          PSERVIC=X'060200000000000000000300',         *@R495812* *
  818.                          SRCVPAC=7,PSNDPAC=7,TYPE=0                       *@KFA*
  819.                    TITLE '#BATCH'                                         *@KFA*
  820.           ***********************************************************************
  821.           *                                                                     *
  822.           *        LOGMODE TABLE FOR BATCH SESSIONS ON RESOURCES CAPABLE        *
  823.           *        OF ACTING AS LU 6.2 DEVICES                                  *
  824.           *                                                                 @KFA*
  825.           ***********************************************************************
  826.           #BATCH   MODEENT LOGMODE=#BATCH,                                *@KFA* *
  827.                          ENCR=B'0000',SSNDPAC=3,                          *@KFA* *
  828.                          SRCVPAC=3,PSNDPAC=3                              *@KFA*
  829.                    TITLE '#INTER'                                         *@KFA*
  830.           ***********************************************************************
  831.           *                                                                     *
  832.           *        LOGMODE TABLE FOR INTERACTIVE SESSIONS ON RESOURCES          *
  833.           *        CAPABLE OF ACTING AS LU 6.2 DEVICES                          *
  834.           *                                                                 @KFA*
  835.           ***********************************************************************
  836.           #INTER   MODEENT LOGMODE=#INTER,                                *@KFA* *
  837.                          ENCR=B'0000',SSNDPAC=7,                          *@KFA* *
  838.                          SRCVPAC=7,PSNDPAC=7                              *@KFA*
  839.                    TITLE '#BATCHSC'                                       *@KFA*
  840.           ***********************************************************************
  841.           *                                                                     *
  842.           *        LOGMODE TABLE FOR BATCH SESSIONS REQUIRING SECURE            *
  843.           *        TRANSPORT ON RESOURCES CAPABLE OF ACTING AS LU 6.2           *
  844.           *        DEVICES                                                      *
  845.           *                                                                 @KFA*
  846.           ***********************************************************************
  847.           #BATCHSC MODEENT LOGMODE=#BATCHSC,                              *@KFA* *
  848.                          ENCR=B'0000',SSNDPAC=3,                          *@KFA* *
  849.                          SRCVPAC=3,PSNDPAC=3                              *@KFA*
  850.                    TITLE '#INTERSC'                                       *@KFA*
  851.           ***********************************************************************
  852.           *                                                                     *
  853.           *        LOGMODE TABLE FOR INTERACTIVE SESSIONS REQUIRING             *
  854.           *        SECURE TRANSPORT ON RESOURCES CAPABLE OF ACTING AS           *
  855.           *        LU 6.2 DEVICES                                               *
  856.           *                                                                 @KFA*
  857.           ***********************************************************************
  858.           #INTERSC MODEENT LOGMODE=#INTERSC,                              *@KFA* *
  859.                          ENCR=B'0000',SSNDPAC=7,                          *@KFA* *
  860.                          SRCVPAC=7,PSNDPAC=7                              *@KFA*
  861.                    TITLE 'CPSVCMG'                                        *@KFA*
  862.           ***********************************************************************
  863.           *                                                                     *
  864.           *        LOGMODE TABLE FOR CP-CP SESSIONS ON RESOURCES CAPABLE        *
  865.           *        OF ACTING AS LU 6.2 DEVICES                                  *
  866.           *                                                                 @KFA*
  867.           ***********************************************************************
  868.           CPSVCMG  MODEENT LOGMODE=CPSCVMG,                               *@KFA* *
  869.                          RUSIZES=X'8686',ENCR=B'0000',                    *@KFA* *
  870.                          SSNDPAC=7,SRCVPAC=7,PSNDPAC=7                    *@KFA*
  871.                    MODEEND
  872.                    END
  873.  
  874.       -   Define AVS Gateway to AVS Service Machine
  875.  
  876.           The gateway defined to VTAM must also be defined for the AVS virtual
  877.           machine. This can be done in the AGWPROF GCS, which is the profile
  878.           information for the AVS service machine. An example is shown below:
  879.  
  880.           /*********************************/
  881.           /*                               */
  882.           /*  SAMPLE AGWPROF GCS FOR AVS   */
  883.           /*                               */
  884.           /*********************************/
  885.           Trace O
  886.           'AGW ACTIVATE GATEWAY SERVER_LU PRIVATE USERID VMSERVER'
  887.           'AGW CNOS SERVER_LU CLIENT_LU #INTER 2 0 2'
  888.  
  889.           The above example activates a private gateway called SERVER_LU, which
  890.           is used exclusively by a server running under userid VMSERVER. It
  891.           also issues a CNOS (change number of sessions) to establish two
  892.           sessions with a device in the VTAM subarea network called CLIENT_LU.
  893.  
  894.   o   Configuration specific to the client computer
  895.  
  896.       The user must define a directory that tells APPC how to find the target
  897.       server, and other parameters of the conversation. These are kept in a
  898.       UCOMDIR NAMES file, similar to the NAMES file used by such things as the
  899.       NOTE exec. An example is shown below:
  900.  
  901.  
  902.         :nick.SERVER
  903.         :luname.SERVER_LU CLIENT_LU
  904.         :tpn.APINGD
  905.         :modename.#INTER
  906.         :security.NONE
  907.  
  908.  
  909.       This tells APPC/VM that a resource called SERVER can be located in the
  910.       VTAM subarea network by using gateway SERVER_LU to establish a session
  911.       with CLIENT_LU using logmode #INTER. The transaction program (TPN) to
  912.       start on that computer is called APINGD. Once this is added to the
  913.       directory, the changes are activated by issuing:
  914.  
  915.       SET COMDIR RELOAD
  916.  
  917.       In addition, VTAM must be able to find the partner LU SERVER_LU.  In VTAM
  918.       V3R4, a session management exit may be defined to do this function.
  919.       Based on the LU name, the exit can be customized to determine which
  920.       Adjacent Link Station (this would typically be a PU2.1) to send the bind
  921.       to.  For pre-V3R4 VTAMs the LU must be defined.  An example of a
  922.       definition for a Switched Major Node is given below:
  923.  
  924.  
  925.       PCSWNODE       VBUILD TYPE=SWNET,MAXGRP=10,MAXNO=10
  926.       SERVER_LUP PU  ADDR=04,ISTATUS=ACTIVE,PACING=7,                        X
  927.                      MAXDATA=2044,IDBLK=05D,IDNUM=00100,                     X
  928.                      MAXOUT=7,PASSLIM=7,MAXPATH=1,                           X
  929.                      PUTYPE=2,LANSW=YES,                                     X
  930.                      MODETAB=AGWTAB,DLOGMOD=#INTER                           X
  931.       SERVER_LU LU   LOCADDR=0,ISTATUS=ACTIVE
  932.  
  933.   o   Configuration specific to the server computer
  934.  
  935.       In the AVS virtual machine definition, VMSERVER was configured as a
  936.       private server, and an LU definition in VTAM (SERVER_LU) assigned to it.
  937.       The following commands must be included in VMSERVER PROFILE EXEC to
  938.       configure it to run as a private resource server:
  939.  
  940.        'SET SERVER ON'
  941.        'SET FULLSCREEN OFF'
  942.        'SET AUTOREAD OFF'
  943.  
  944.       The following must be added to the $SERVER$ NAMES file on the VMSERVER
  945.       userid:
  946.  
  947.  
  948.         :nick.APINGD :list.*
  949.                          :module.APINGD
  950.  
  951.   +---------------------------------------------------------------------------+
  952.   |                                                                           |
  953.   | Configuration for MVS.                                                    |
  954.   |                                                                           |
  955.   +---------------------------------------------------------------------------+
  956.  
  957.   +--- WARNING ---------------------------------------------------------------+
  958.   |                                                                           |
  959.   | The configuration instructions for MVS have not been fully tested.  If    |
  960.   | you have problems, please contact the author (indicated at the top of     |
  961.   | this file).                                                               |
  962.   |                                                                           |
  963.   +---------------------------------------------------------------------------+
  964.  
  965.   o   Where and how configuration changes are made
  966.  
  967.       APPC/MVS configuration is detailed in Planning: APPC
  968.       Management(GC28-1110).  In general it involves defining parameters for
  969.       two subsystems, APPC and ASCH. They run in separate address spaces. The
  970.       APPC address space handles the actual communications, while ASCH is a
  971.       scheduler that initiates transaction programs based on receipt of
  972.       incoming attaches. Beyond these two address spaces, some configuration is
  973.       required in VTAM.
  974.  
  975.       MVS/ESA 4.2 or later is required for APPC/MVS.
  976.  
  977.   o   The APPC/MVS Address Spaces
  978.  
  979.       Both APPC and ASCH have parmlib members that contain configuration
  980.       information for the respective address spaces. Samples are shipped with
  981.       MVS/ESA 4.2 or higher in SYS1.SAMPLIB. These samples can be modified and
  982.       copied into SYS1.PARMLIB to provide the parameters necessary to start the
  983.       respective subsystems. Their names in SYS1.SAMPLIB are APPCPMXX and
  984.       ASCHPMXX. The "XX" must be changed to a numeric value when the members
  985.       are placed in SYS1.PARMLIB. Below is a sample SYS1.PARMLIB(APPCPM00),
  986.       which is the default used at startup.
  987.  
  988.        /***PROPRIETARY_STATEMENT********************************************/
  989.        /*                                                                  */
  990.        /*                                                                  */
  991.        /* LICENSED MATERIALS - PROPERTY OF IBM                             */
  992.        /* THIS MACRO IS "RESTRICTED MATERIALS OF IBM"                      */
  993.        /* 5695-047 (C) COPYRIGHT IBM CORP. 1990                            */
  994.        /* SEE COPYRIGHT INSTRUCTIONS                                       */
  995.        /*                                                                  */
  996.        /* STATUS= HBB4420                                                  */
  997.        /*                                                                  */
  998.        /***END_OF_PROPRIETARY_STATEMENT*************************************/
  999.        /********************************************************************/
  1000.        /*   This is a sample APPCPM00 member of SYS1.PARMLIB.              */
  1001.        /*                                                                  */
  1002.        /*   APPCPM00 parmlib members contain startup, default and          */
  1003.        /*   customization values for APPC/MVS. They also contain           */
  1004.        /*   information indicating the correspondence between              */
  1005.        /*   logical unit(LU) names and transaction schedulers.             */
  1006.        /*                                                                  */
  1007.        /*   This member illustrates the syntax of the LUADD, LUDEL,        */
  1008.        /*   LMADD, LMDEL and SIDEINFO statement types.                     */
  1009.        /*                                                                  */
  1010.        /*   NOTE:                                                          */
  1011.        /*                                                                  */
  1012.        /*   This SAMPLIB member is only an example. The value              */
  1013.        /*   represented on each statement is not necessarily an            */
  1014.        /*   IBM-recommended value.                                         */
  1015.        /*   Installations may use this member as a sample, and             */
  1016.        /*   modify it according to their needs.                            */
  1017.        /*                                                                  */
  1018.        /*   DO NOT COPY AND USE THIS SAMPLE WITHOUT PROVIDING THE          */
  1019.        /*   NECESSARY SUPPORT FOR THE VALUES IT NAMES.                     */
  1020.        /*                                                                  */
  1021.        /********************************************************************/
  1022.  
  1023.  
  1024.        /********************************************************************/
  1025.        /*                                                                  */
  1026.        /*   Define a local LU with the name TOMVSAP to the APPC/MVS        */
  1027.        /*   configuration.                                                 */
  1028.        /*                                                                  */
  1029.        /*   Note:                                                          */
  1030.        /*                                                                  */
  1031.        /*   1. The VSAM data set specified on the TPDATA keyword           */
  1032.        /*      must be already defined to the system, otherwise an         */
  1033.        /*      error message will be issued.                               */
  1034.        /*                                                                  */
  1035.        /*   2. If this LU is intended to handle network traffic,           */
  1036.        /*      then the LU name MVSLU01 must correspond to the             */
  1037.        /*      ACBNAME operand of an application definition (APPL)         */
  1038.        /*      statement in the SYS1.VTAMLST system library and            */
  1039.        /*      the ACBNAME & APPL name must match.                         */
  1040.        /*                                                                  */
  1041.        /********************************************************************/
  1042.          LUADD ACBNAME(TOMVSAP)     /* Add local LU MVSLU01 to the         */
  1043.                                     /* APPC/MVS configuration              */
  1044.                SCHED(ASCH)          /* Specify that the APPC/MVS           */
  1045.                                     /* transaction scheduler is associated */
  1046.                                     /* with this LU name                   */
  1047.                BASE                 /* Designate this LU as the base LU    */
  1048.                TPDATA(SYS1.APPCTP)  /* Specify that VSAM data set          */
  1049.                                     /* SYS1.APPCTP is the permanent        */
  1050.                                     /* repository for the TP profiles      */
  1051.                                     /* for this LU                         */
  1052.                TPLEVEL(USER)        /* Specify the search order for TP     */
  1053.                                     /* profiles as :                       */
  1054.                                     /* 1. TP profiles associated with      */
  1055.                                     /*    a specific user                  */
  1056.                                     /* 2. TP profiles associated with      */
  1057.                                     /*    a group of users                 */
  1058.                                     /* 3. TP profiles associated with      */
  1059.                                     /*    all users of the LU name         */
  1060.  
  1061.        /********************************************************************/
  1062.        /*                                                                  */
  1063.        /*   Specify that Side information is to be kept in VSAM            */
  1064.        /*   data set SYS1.APPCSI.                                          */
  1065.        /*                                                                  */
  1066.        /*   Note:                                                          */
  1067.        /*                                                                  */
  1068.        /*   1. If the SIDEINFO statement is specified with no operands     */
  1069.        /*      then the default will be:                                   */
  1070.        /*      o DATASET(SYS1.APPCSI)                                      */
  1071.        /*                                                                  */
  1072.        /*   2. The VSAM data set specified on the DATASET keyword          */
  1073.        /*      must be already defined to the system, otherwise an         */
  1074.        /*      error message will be issued.                               */
  1075.        /*                                                                  */
  1076.        /********************************************************************/
  1077.          SIDEINFO DATASET(SYS1.APPCSI) /* Specify that VSAM data set       */
  1078.                                        /* SYS1.APPCSI is the permanent     */
  1079.                                        /* repository for the side          */
  1080.                                        /* information                      */
  1081.  
  1082.       Below is a sample ASCHPM00 parmlib member.
  1083.  
  1084.        /*01* PROPRIETARY STATEMENT=                                        */
  1085.        /***PROPRIETARY_STATEMENT********************************************/
  1086.        /*                                                                  */
  1087.        /*                                                                  */
  1088.        /* LICENSED MATERIALS - PROPERTY OF IBM                             */
  1089.        /* THIS MACRO IS "RESTRICTED MATERIALS OF IBM"                      */
  1090.        /* 5695-047 (C) COPYRIGHT IBM CORP. 1990                            */
  1091.        /* SEE COPYRIGHT INSTRUCTIONS                                       */
  1092.        /*                                                                  */
  1093.        /* STATUS= HBB4420                                                  */
  1094.        /*                                                                  */
  1095.        /***END_OF_PROPRIETARY_STATEMENT*************************************/
  1096.        /********************************************************************/
  1097.        /*   This is a sample ASCHPM00 member of SYS1.PARMLIB.              */
  1098.        /*                                                                  */
  1099.        /*   ASCHPMxx parmlib members contain startup, default and          */
  1100.        /*   customization values for the APPC/MVS transaction scheduler.   */
  1101.        /*   These parmlib members define classes of transaction            */
  1102.        /*   initiators in which a transaction program can run.             */
  1103.        /*                                                                  */
  1104.        /*   This member illustrates the syntax of the CLASSADD,            */
  1105.        /*   OPTIONS and TPDEFAULT statement types.                         */
  1106.        /*                                                                  */
  1107.        /*   NOTE:                                                          */
  1108.        /*                                                                  */
  1109.        /*   This SAMPLIB member is only an example. The value              */
  1110.        /*   represented on each statement is not necessarily an            */
  1111.        /*   IBM-recommended value.                                         */
  1112.        /*   Installations may use this member as a sample, and             */
  1113.        /*   modify it according to their needs.                            */
  1114.        /*                                                                  */
  1115.        /*   DO NOT COPY AND USE THIS SAMPLE WITHOUT PROVIDING THE          */
  1116.        /*   NECESSARY SUPPORT FOR THE VALUES IT NAMES.                     */
  1117.        /*                                                                  */
  1118.        /********************************************************************/
  1119.  
  1120.  
  1121.        /********************************************************************/
  1122.        /*                                                                  */
  1123.        /*   Define a class of transaction initiators to be added to        */
  1124.        /*   the APPC/MVS transaction scheduler configuration.              */
  1125.        /*   The class has the following characteristics:                   */
  1126.        /*         o Class name - FAST                                      */
  1127.        /*         o Maximum number of transaction initiators allowed - 10  */
  1128.        /*         o Minimum number of transaction initiators to be         */
  1129.        /*           brought up - 2                                         */
  1130.        /*         o Response time goal - 0.02 seconds                      */
  1131.        /*         o Maximum size of the job log for TPs - 500 messages     */
  1132.        /*                                                                  */
  1133.        /********************************************************************/
  1134.          CLASSADD CLASSNAME(FAST)   /* Specify the name of the class to be */
  1135.                                     /* added                               */
  1136.                   MAX(10)           /* Specify that the maximum number     */
  1137.                                     /* of transaction initiators allowed   */
  1138.                                     /* for this class is 10                */
  1139.                   MIN(2)            /* Specify that the minimum number     */
  1140.                                     /* of transaction initiators to be     */
  1141.                                     /* brought up for this class is 2      */
  1142.                   RESPGOAL(.02)     /* Specify that the response time      */
  1143.                                     /* goal for transaction programs       */
  1144.                                     /* executing within this class is 0.02 */
  1145.                                     /* seconds                             */
  1146.                   MSGLIMIT(500)     /* Specify that the maximum size of    */
  1147.                                     /* the job logs for TPs is 500         */
  1148.                                     /* messages                            */
  1149.  
  1150.        /********************************************************************/
  1151.        /*                                                                  */
  1152.        /*   Define a class of transaction initiators to be added to        */
  1153.        /*   the APPC/MVS transaction scheduler configuration.              */
  1154.        /*   The class has the following characteristics:                   */
  1155.        /*         o Class name - SLOW                                      */
  1156.        /*         o Maximum number of transaction initiators allowed - 1   */
  1157.        /*         o Minimum number of transaction initiators to be         */
  1158.        /*           brought up - 0                                         */
  1159.        /*         o Response time goal - 1 second                          */
  1160.        /*         o Maximum size of the job log for TPs - 500 messages     */
  1161.        /*                                                                  */
  1162.        /*   Note:                                                          */
  1163.        /*                                                                  */
  1164.        /*   1. Defaults are used if keywords are omitted from a            */
  1165.        /*      CLASSADD statement except for the CLASSNAME.                */
  1166.        /*                                                                  */
  1167.        /*   2. The following defaults will be taken for this entry:        */
  1168.        /*      o MAX(1)                                                    */
  1169.        /*      o MIN(0)                                                    */
  1170.        /*      o RESPGOAL(1)                                               */
  1171.        /*      o MSGLIMIT(500)                                             */
  1172.        /*                                                                  */
  1173.        /********************************************************************/
  1174.          CLASSADD CLASSNAME(SLOW)   /* Specify the name of the class to be */
  1175.                                     /* added                               */
  1176.  
  1177.        /********************************************************************/
  1178.        /*                                                                  */
  1179.        /*   Define the APPC/MVS transaction scheduler configuration        */
  1180.        /*   default class in which to run transaction programs when a      */
  1181.        /*   classname is not specified in the TP profile, and define       */
  1182.        /*   the subsystem to which all newly created APPC/MVS              */
  1183.        /*   transaction initiators are assigned.                           */
  1184.        /*                                                                  */
  1185.        /*   Note:                                                          */
  1186.        /*                                                                  */
  1187.        /*   1. There is no default for the DEFAULT keyword.                */
  1188.        /*                                                                  */
  1189.        /*   2. The default SUBSYS(Primary subsystem name) will only        */
  1190.        /*      apply when there is no prior SUBSYS defined to the          */
  1191.        /*      APPC/MVS transaction scheduler configuration.               */
  1192.        /*                                                                  */
  1193.        /********************************************************************/
  1194.          OPTIONS DEFAULT(SLOW)      /* Specify the default class           */
  1195.                  SUBSYS(JES2)       /* Specify the name of a subsystem     */
  1196.  
  1197.       Note that both SYS1.APPCTP and SYS1.APPCSI must be defined prior to
  1198.       starting APPC and ASCH. Below are sample jobs to do these tasks:
  1199.  
  1200.       //ATBTP01  JOB CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1)
  1201.       /*JOBPARM LINES=9999,TIME=1440
  1202.       //*************************************************************/
  1203.       //*                                                           */
  1204.       //*  THIS IS A SAMPLE DEFINITION FOR A VSAM KEY SEQUENCED     */
  1205.       //*  DATA SET (KSDS) TO CONTAIN APPC TP PROFILES.  YOU CAN    */
  1206.       //*  USE THIS SAMPLE OR MODIFY IT.                            */
  1207.       //*                                                           */
  1208.       //*  A TP PROFILE ENTRY CONTAINS IDENTIFICATION, SECURITY,    */
  1209.       //*  AND SCHEDULING INFORMATION FOR A TP THAT RESPONDS TO     */
  1210.       //*  AN INBOUND ALLOCATE REQUEST.                             */
  1211.       //*                                                           */
  1212.       //*                                                           */
  1213.       //*    SHAREOPTIONS(3 3) -                                    */
  1214.       //*                                                           */
  1215.       //*       MUST BE (3 3) BECAUSE THE APPC SUBSYSTEM REFERENCES */
  1216.       //*       THIS KSDS IN SUCH A WAY THAT IT MUST BE FULLY       */
  1217.       //*       SHARED.                                             */
  1218.       //*                                                           */
  1219.       //*    RECORDSIZE(3824 7024) -                                */
  1220.       //*                                                           */
  1221.       //*       THIS IS THE AVERAGE AND MAXIMUM RECORD SIZE.        */
  1222.       //*                                                           */
  1223.       //*       AVERAGE CALCULATION:                                */
  1224.       //*                                                           */
  1225.       //*         TP PROFILE KEY                     112 BYTES      */
  1226.       //*         NON JCL DATA (maximum possible)    512 BYTES      */
  1227.       //*         JCL  (40 LINE OF  80 BYTES)       3200 BYTES      */
  1228.       //*        ------------                     -------------     */
  1229.       //*         TOTAL                             3824 BYTES      */
  1230.       //*                                                           */
  1231.       //*       MAXIMUM CALCULATION:                                */
  1232.       //*                                                           */
  1233.       //*         TP PROFILE KEY                     112 BYTES      */
  1234.       //*         NON JCL DATA (maximum possible)    512 BYTES      */
  1235.       //*         JCL  (80 LINE OF  80 BYTES)       6400 BYTES      */
  1236.       //*        ------------                     -------------     */
  1237.       //*         TOTAL                             7024 BYTES      */
  1238.       //*                                                           */
  1239.       //*                                                           */
  1240.       //*  THIS KSDS IS DESIGNED TO HOLD 300 TP PROFILES            */
  1241.       //*  BUT CAN EXPAND TO HOLD AN ADDITIONAL 150.                */
  1242.       //*                                                           */
  1243.       //*  CHANGES:                                                 */
  1244.       //*                                                           */
  1245.       //*    - REPLACE CNMSTC WITH THE NAME OF YOUR VOLUME.         */
  1246.       //*    - REPLACE, IF NECESSARY, SYS1.APPCTP WITH THE NAME     */
  1247.       //*        OF YOUR TP PROFILE DATASET.                        */
  1248.       //*    - REPLACE, IF NECESSARY, THE RECORDS VALUES WITH THE   */
  1249.       //*        NUMBER OF TP PROFILES THE KSDS IS DESIGNED TO HOLD */
  1250.       //*        AND THE EXPANSION NUMBER.                          */
  1251.       //*                                                           */
  1252.       //*************************************************************/
  1253.       //TPSAMPLE EXEC PGM=IDCAMS
  1254.       //CNMSTC   DD   DISP=OLD,UNIT=3380,VOL=SER=CNMSTC
  1255.       //SYSPRINT DD   SYSOUT=*
  1256.       //SYSABEND DD   SYSOUT=*
  1257.       //AMSDUMP  DD   SYSOUT=*
  1258.       //SYSIN    DD   *
  1259.               DEFINE CLUSTER (NAME(SYS1.APPCTP) -
  1260.                   VOLUMES(CNMSTC) -
  1261.                   INDEXED REUSE -
  1262.                   SHAREOPTIONS(3 3) -
  1263.                   RECORDSIZE(3824 7024) -
  1264.                   KEYS(112 0) -
  1265.                   RECORDS(300 150)) -
  1266.                 DATA -
  1267.                   (NAME(SYS1.APPCTP.DATA)) -
  1268.                 INDEX -
  1269.                   (NAME(SYS1.APPCTP.INDEX))
  1270.       /*
  1271.       //ATBSI02  JOB CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1)
  1272.       /*JOBPARM LINES=9999,TIME=1440
  1273.       //*************************************************************/
  1274.       //*                                                           */
  1275.       //*  THIS IS A SAMPLE DEFINITION FOR A VSAM KEY SEQUENCED     */
  1276.       //*  DATA SET (KSDS) TO CONTAIN APPC SIDE INFORMATION.        */
  1277.       //*  YOU CAN USE THIS SAMPLE OR MODIFY IT.                    */
  1278.       //*                                                           */
  1279.       //*  A SIDE INFORMATION ENTRY CONTAINS THE TRANSLATION OF A   */
  1280.       //*  SYMBOLIC DESTINATION NAME THAT IS USED TO INITIATE AN    */
  1281.       //*  APPC CONVERSATION.  THE SIDE INFORMATION ENTRY CONSISTS  */
  1282.       //*  OF:                                                      */
  1283.       //*                                                           */
  1284.       //*      SI KEY                        112 BYTES              */
  1285.       //*      SI DATA                       136 BYTES              */
  1286.       //*     ---------                     -----------             */
  1287.       //*      TOTAL                         248 BYTES              */
  1288.       //*                                                           */
  1289.       //*  THIS KSDS IS DESIGNED TO HOLD 50 SIDE INFORMATION        */
  1290.       //*  ENTRIES BUT CAN EXPAND TO HOLD AN ADDITIONAL 25.         */
  1291.       //*                                                           */
  1292.       //*  CHANGES:                                                 */
  1293.       //*                                                           */
  1294.       //*   - REPLACE CNMSTC WITH THE NAME OF YOUR VOLUME.          */
  1295.       //*   - REPLACE, IF NECESSARY, SYS1.APPCSI WITH THE NAME OF   */
  1296.       //*         YOUR SIDE INFORMATION REPOSITORY.                 */
  1297.       //*   - REPLACE, IF NECESSARY, THE RECORDS VALUES WITH THE    */
  1298.       //*         NUMBER OF ENTRIES THE KSDS IS DESIGNED TO HOLD    */
  1299.       //*         AND THE EXPANSION NUMBER.                         */
  1300.       //*                                                           */
  1301.       //*************************************************************/
  1302.       //SISAMPLE EXEC PGM=IDCAMS
  1303.       //CNMSTC   DD   DISP=OLD,UNIT=3380,VOL=SER=CNMSTC
  1304.       //SYSPRINT DD   SYSOUT=*
  1305.       //SYSABEND DD   SYSOUT=*
  1306.       //AMSDUMP  DD   SYSOUT=*
  1307.       //SYSIN    DD   *
  1308.               DEFINE CLUSTER (NAME(SYS1.APPCSI) -
  1309.                   VOLUME(CNMSTC) -
  1310.                   INDEXED REUSE -
  1311.                   SHAREOPTIONS(3 3) -
  1312.                   RECORDSIZE(248 248) -
  1313.                   KEYS(112 0) -
  1314.                   RECORDS(50 25)) -
  1315.                 DATA -
  1316.                   (NAME(SYS1.APPCSI.DATA)) -
  1317.                 INDEX -
  1318.                   (NAME(SYS1.APPCSI.INDEX))
  1319.  
  1320.       For APINGD to be scheduled by ASCH, a transaction program (TP) profile
  1321.       must be created. This information is loaded into the TP profile VSAM
  1322.       dataset. Below is a sample job to do this:
  1323.  
  1324.       //ATBTP01  JOB CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1)
  1325.       //*************************************************************
  1326.       //*   Change YOURUSER to your own userid
  1327.       //*
  1328.       //STEP     EXEC PGM=ATBSDFMU
  1329.       //SYSPRINT DD   SYSOUT=*
  1330.       //SYSSDLIB DD   DSN=SYS1.APPCTP,DISP=SHR
  1331.       //SYSSDOUT DD   SYSOUT=*
  1332.       //SYSIN    DD   DATA,DLM=XX
  1333.            TPADD
  1334.                 TPNAME(APINGD)
  1335.                 ACTIVE(YES)
  1336.                 TPSCHED_DELIMITER(##)
  1337.                    TAILOR_SYSOUT(NO)
  1338.                    TAILOR_ACCOUNT(NO)
  1339.                    CLASS(FAST)
  1340.                    TPSCHED_TYPE(STANDARD)
  1341.                    JCL_DELIMITER(END_OF_JCL)
  1342.  
  1343.       //APINGD JOB  MSGLEVEL=(1,1),MSGCLASS=A
  1344.       //IKJACCNT EXEC PGM=IKJEFT01,PARM='CALL ''YOURUSER.LOADLIB(APINGD)'''
  1345.       //SYSUADS  DD  DISP=SHR,DSN=SYS1.UADS
  1346.       //SYSLBC   DD  DISP=SHR,DSN=SYS1.BRODCAST
  1347.       //STEPLIB  DD DSN=YOURUSER.LOADLIB,DISP=SHR
  1348.       //         DD DSN=EDC.V2R1M0.SEDCLINK,DISP=SHR
  1349.       //         DD DSN=PLI.V2R3M0.SIBMLINK,DISP=SHR
  1350.       //         DD DSN=ISP.V3R2M0.ISPLOAD,DISP=SHR
  1351.       //SYSTSPRT DD SYSOUT=A,FREE=CLOSE
  1352.       //SYSTSIN  DD DUMMY
  1353.       //SYSPRINT DD SYSOUT=A,FREE=CLOSE
  1354.       END_OF_JCL
  1355.         KEEP_MESSAGE_LOG(ERROR)
  1356.       ##
  1357.       XX
  1358.       /*
  1359.  
  1360.       In the above, the load module for APINGD is assumed to reside in
  1361.       YOURUSER.LOADLIB. Also, note the CLASS is FAST, and those parameters were
  1362.       defined in the ASCHPM00 member above.
  1363.  
  1364.       If APING is to use CPI-C side information, the side information must be
  1365.       loaded into the side information VSAM data set, SYS1.APPCSI.  Below is a
  1366.       sample job to perform this function:
  1367.  
  1368.       //ATBSI01  JOB CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1)
  1369.       //*************************************************************
  1370.       //STEP     EXEC PGM=ATBSDFMU
  1371.       //SYSPRINT DD   SYSOUT=*
  1372.       //SYSSDLIB DD   DSN=SYS1.APPCSI,DISP=SHR
  1373.       //SYSSDOUT DD   SYSOUT=*
  1374.       //SYSIN    DD   *
  1375.            SIADD
  1376.                 DESTNAME(IBMRTP)
  1377.                 TPNAME(APINGD)
  1378.                 MODENAME(#INTER)
  1379.                 PARTNER_LU(SERVER_LU)
  1380.       /*
  1381.  
  1382.       In the above example, the side information name IBMRTP will designate the
  1383.       partner TP APINGD at partner LU SERVER_LU using mode #INTER.
  1384.  
  1385.       In order to start the two subsystems, the commands:
  1386.  
  1387.       START APPC,SUB=MSTR
  1388.       START ASCH,SUB=MSTR
  1389.  
  1390.       must be issued at the console. These commands use the SYS1.PROCLIB
  1391.       members APPC and ASCH, shipped with MVS/ESA 4.2 or higher.
  1392.  
  1393.   o   VTAM
  1394.  
  1395.       The application name for the APPC/MVS LU must be defined. The following
  1396.       example shows this. While this shows only one LU definition, it is
  1397.       possible for APPC/MVS to have multiple LU definitions that can be used
  1398.       for different purposes.
  1399.  
  1400.       AB7APPLS  VBUILD TYPE=APPL
  1401.       TOMVSAP APPL ACBNAME=TOMVSAP,APPC=YES,AUTOSES=5,DDRAINL=NALLOW,        *
  1402.                      DMINWNL=3,DMINWNR=6,DRESPL=NALLOW,DSESLIM=9,EAS=509,    *
  1403.                      MODETAB=APPCMODE,SECACPT=CONV,VPACING=2,VERIFY=NONE,    *
  1404.                      SRBEXIT=YES,DLOGMOD=#INTER
  1405.  
  1406.       Note that the LU name (TOMVSAP) matches the name defined in the PARMLIB
  1407.       member APPCPM00. The default mode name is #INTER, which is included in
  1408.       mode table APPCMODE. #INTER is an architected mode name.  In general,
  1409.       mode names used should be from the set of architected ones. Below is a
  1410.       mode table containing these architected modes.
  1411.       APPCMODE MODETAB
  1412.       **********************************************************************
  1413.       *        LOGMODE TABLE ENTRY FOR RESOURCES CAPABLE OF ACTING         *
  1414.       *                                AS LU 6.2 DEVICES      @R495812 @KFC*
  1415.       **********************************************************************
  1416.       SNASVCMG MODEENT LOGMODE=SNASVCMG,FMPROF=X'13',TSPROF=X'07',           *
  1417.                      PRIPROT=X'B0',SECPROT=X'B0',COMPROT=X'D0B1',            *
  1418.                      RUSIZES=X'8686',ENCR=B'0000',SSNDPAC=7,          *@KFC* *
  1419.                      PSERVIC=X'060200000000000000000300',         *@R495812* *
  1420.                      SRCVPAC=7,PSNDPAC=7,TYPE=0                       *@KFA*
  1421.                TITLE '#BATCH'                                         *@KFA*
  1422.       ***********************************************************************
  1423.       *                                                                     *
  1424.       *        LOGMODE TABLE FOR BATCH SESSIONS ON RESOURCES CAPABLE        *
  1425.       *        OF ACTING AS LU 6.2 DEVICES                                  *
  1426.       *                                                                 @KFA*
  1427.       ***********************************************************************
  1428.       #BATCH   MODEENT LOGMODE=#BATCH,                                *@KFA* *
  1429.                      ENCR=B'0000',SSNDPAC=3,                          *@KFA* *
  1430.                      SRCVPAC=3,PSNDPAC=3                              *@KFA*
  1431.                TITLE '#INTER'                                         *@KFA*
  1432.       ***********************************************************************
  1433.       *                                                                     *
  1434.       *        LOGMODE TABLE FOR INTERACTIVE SESSIONS ON RESOURCES          *
  1435.       *        CAPABLE OF ACTING AS LU 6.2 DEVICES                          *
  1436.       *                                                                 @KFA*
  1437.       ***********************************************************************
  1438.       #INTER   MODEENT LOGMODE=#INTER,                                *@KFA* *
  1439.                      ENCR=B'0000',SSNDPAC=7,                          *@KFA* *
  1440.                      SRCVPAC=7,PSNDPAC=7                              *@KFA*
  1441.                TITLE '#BATCHSC'                                       *@KFA*
  1442.       ***********************************************************************
  1443.       *                                                                     *
  1444.       *        LOGMODE TABLE FOR BATCH SESSIONS REQUIRING SECURE            *
  1445.       *        TRANSPORT ON RESOURCES CAPABLE OF ACTING AS LU 6.2           *
  1446.       *        DEVICES                                                      *
  1447.       *                                                                 @KFA*
  1448.       ***********************************************************************
  1449.       #BATCHSC MODEENT LOGMODE=#BATCHSC,                              *@KFA* *
  1450.                      ENCR=B'0000',SSNDPAC=3,                          *@KFA* *
  1451.                      SRCVPAC=3,PSNDPAC=3                              *@KFA*
  1452.                TITLE '#INTERSC'                                       *@KFA*
  1453.       ***********************************************************************
  1454.       *                                                                     *
  1455.       *        LOGMODE TABLE FOR INTERACTIVE SESSIONS REQUIRING             *
  1456.       *        SECURE TRANSPORT ON RESOURCES CAPABLE OF ACTING AS           *
  1457.       *        LU 6.2 DEVICES                                               *
  1458.       *                                                                 @KFA*
  1459.       ***********************************************************************
  1460.       #INTERSC MODEENT LOGMODE=#INTERSC,                              *@KFA* *
  1461.                      ENCR=B'0000',SSNDPAC=7,                          *@KFA* *
  1462.                      SRCVPAC=7,PSNDPAC=7                              *@KFA*
  1463.                TITLE 'CPSVCMG'                                        *@KFA*
  1464.       ***********************************************************************
  1465.       *                                                                     *
  1466.       *        LOGMODE TABLE FOR CP-CP SESSIONS ON RESOURCES CAPABLE        *
  1467.       *        OF ACTING AS LU 6.2 DEVICES                                  *
  1468.       *                                                                 @KFA*
  1469.       ***********************************************************************
  1470.       CPSVCMG  MODEENT LOGMODE=CPSCVMG,                               *@KFA* *
  1471.                      RUSIZES=X'8686',ENCR=B'0000',                    *@KFA* *
  1472.                      SSNDPAC=7,SRCVPAC=7,PSNDPAC=7                    *@KFA*
  1473.                MODEEND
  1474.                END
  1475.  
  1476.       This table should be assembled and placed in a dataset defined to STEPLIB
  1477.       in the VTAM start procedure.
  1478.  
  1479.       VTAM must also be able to find the partner LU SERVER_LU.  In VTAM V3R4, a
  1480.       session management exit may be defined to do this function.  Based on the
  1481.       LU name, the exit can be customized to determine which Adjacent Link
  1482.       Station (this would typically be a PU2.1) to send the bind to.  For
  1483.       pre-V3R4 VTAMs the LU must be defined.  An example of a definition for a
  1484.       Switched Major Node is given below:
  1485.  
  1486.       PCSWNODE       VBUILD TYPE=SWNET,MAXGRP=10,MAXNO=10
  1487.       SERVER_LUP PU  ADDR=04,ISTATUS=ACTIVE,PACING=7,                        X
  1488.                      MAXDATA=2044,IDBLK=05D,IDNUM=00100,                     X
  1489.                      MAXOUT=7,PASSLIM=7,MAXPATH=1,                           X
  1490.                      PUTYPE=2,LANSW=YES,                                     X
  1491.                      MODETAB=AGWTAB,DLOGMOD=#INTER                           X
  1492.       SERVER_LU LU   LOCADDR=0,ISTATUS=ACTIVE
  1493.  
  1494.   +---------------------------------------------------------------------------+
  1495.   |                                                                           |
  1496.   | Configuration for AS/400                                                  |
  1497.   |                                                                           |
  1498.   +---------------------------------------------------------------------------+
  1499.  
  1500.   o   General configuration tools
  1501.  
  1502.       -   Where and how configuration changes are made
  1503.  
  1504.           AS/400 configuration is performed through a series of menu driven
  1505.           panels.  You can access these panels either by proceeding through a
  1506.           series of menu choices, or by entering the command name directly.
  1507.  
  1508.       -   How to make your configuration changes active
  1509.  
  1510.           Unless specifically noted, all configuration changes are active and
  1511.           usable as soon as they are entered.
  1512.  
  1513.   o   Configuration changes common to client and server computers
  1514.  
  1515.       -   Defining a local LU During the AS/400 installation process, at least
  1516.           one local LU was configured.  This is the LU that will be used when
  1517.           you run the APING client.  When your computer is acting as a server,
  1518.  
  1519.           this is the LU name that should be configured on the client platform
  1520.           as the partner LU.
  1521.  
  1522.           You can find your local LU on the Display Network Attributes panel.
  1523.           You can find this panel through the following sequence:
  1524.  
  1525.               define_local_cp  fq_cp_name(NETWORK_NAME.CLIENT_LU)
  1526.             7. Define or change the system
  1527.                 1. Configuration
  1528.                     4. Network management
  1529.                         1. Display network attributes
  1530.  
  1531.           You will see a panel similar to the following:
  1532.  
  1533.                                        Display Network Attributes
  1534.                                                         System:   CLIENT_LU
  1535.              Current system name  . . . . . . . . . . . . . . :   CLIENT_LU
  1536.                Pending system name  . . . . . . . . . . . . . :
  1537.              Local network ID . . . . . . . . . . . . . . . . :   NETWORK_NAME
  1538.              Local control point name . . . . . . . . . . . . :   CLIENT_LU
  1539.              Default local location . . . . . . . . . . . . . :   CLIENT_LU
  1540.              Default mode . . . . . . . . . . . . . . . . . . :   BLANK
  1541.              APPN node type . . . . . . . . . . . . . . . . . :   *NETNODE
  1542.              Maximum number of intermediate sessions  . . . . :   200
  1543.              Route addition resistance  . . . . . . . . . . . :   128
  1544.              Server network ID/control point name . . . . . . :
  1545.  
  1546.           The local LU is NETWORK_NAME.CLIENT_LU.
  1547.  
  1548.       -   Defining a partner LU and Defining a link to a partner computer or to
  1549.           the network node
  1550.  
  1551.           On the AS/400, you can define your partner LU name and a logical link
  1552.           from the same configuration panel.  A controller description is used
  1553.           to describe all the characteristics of an adjacent computer.
  1554.  
  1555.           You can access controller descriptions through the CRTCTLAPPC or
  1556.           CHGCTLAPPC commands (Create/Change Controller Description, APPC).
  1557.  
  1558.           The following example shows only the fields of the controller
  1559.           description that need to be changed.  You can allow the other fields
  1560.           to use the defaults.
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.             CRTCTLAPPC
  1568.                     Controller Description                > SERVER_LU
  1569.                     Link type                             > *LAN
  1570.                     Online at IPL                         > *YES
  1571.                     APPN-capable                          > *YES
  1572.                     Switched line list                    > TRLAN
  1573.                     Remote network identifier             > NETWORK_NAME
  1574.                     Remote control point                  > SERVER_LU
  1575.                     LAN remote adapter address            > 400000000001
  1576.                     APPN CP session support               > *YES
  1577.                     APPN node type                        > *ENDNODE
  1578.                     APPN transmission group number        > *CALC
  1579.  
  1580.           This example has used a token ring line description named TRLAN.  To
  1581.           work with these line descriptions, use CRTLINTRN or CHGLINTRN.  To
  1582.           use other DLC types, use CRTLINSDLC, CRTLINX25, CHGLINSDLC,
  1583.           CHGLINX25).
  1584.  
  1585.   o   Configuration changes specific to the client computer
  1586.  
  1587.       No special configuration is needed for AS/400 to configure the APING
  1588.       client.
  1589.  
  1590.   o   Configuration changes specific to the server computer
  1591.  
  1592.       -   Defining the TP To configure the server side for AS/400, all you have
  1593.           to do is change the User Library List.  The library where the APINGD
  1594.           program resides should be added to the list.
  1595.  
  1596.           To access the User Library List:
  1597.  
  1598.           --  Run the WRKSYSVAL command.
  1599.  
  1600.           --  Page down until you find the QUSRLIBL system value, select 2 for
  1601.               change.
  1602.  
  1603.           --  Add the library (usually APING) to the list.
  1604.  
  1605.   +---------------------------------------------------------------------------+
  1606.   |                                                                           |
  1607.   | Configuration for AIX SNA Services                                        |
  1608.   |                                                                           |
  1609.   +---------------------------------------------------------------------------+
  1610.  
  1611.   o   General configuration tools
  1612.  
  1613.       -   Where and how configuration changes are made
  1614.  
  1615.           Configuration for AIX SNA Services can be done through either SMIT
  1616.           configuration panels, or importing ascii configuration files.  The
  1617.           examples shown below will be excerpts from an ascii configuration
  1618.           file.  You can either import these excerpts, or use them as a guide
  1619.           while configuring using SMIT.
  1620.  
  1621.       -   How to make your configuration changes active
  1622.  
  1623.           The proper sequence of commands to change your configuration and make
  1624.           the changes active is:
  1625.  
  1626.             stopsrc -s sna
  1627.             importsna -l appc.pro
  1628.             startsrc -s sna
  1629.  
  1630.   o   Configuration changes common to client and server computers
  1631.  
  1632.       -   Defining a local LU
  1633.  
  1634.           The definition of a local LU involves defining a control point and a
  1635.           local LU.
  1636.  
  1637.           The control point definition should be:
  1638.  
  1639.             CLIENT_LU_CONTROL POINT:
  1640.                     type = CONTROLPOINT
  1641.                     profile_name = LOCALCP
  1642.                     xid_node_id = 07100000
  1643.                     network_name = NETWORK_NAME
  1644.                     cp_name = CLIENT_LU
  1645.  
  1646.           Where NETWORK_NAME and CLIENT_LU should be changed for your
  1647.           environment.
  1648.  
  1649.           The local LU definition should be:
  1650.  
  1651.             CLIENT_LU_LOCAL LU:
  1652.                     type = LOCALLU
  1653.                     profile_name = LOCALLU
  1654.                     local_lu_name = CLIENT_LU
  1655.                     network_name = NETWORK_NAME
  1656.                     lu_type = lu6.2
  1657.                     independent_lu = yes
  1658.                     cp_sessions = no
  1659.                     tpn_list_name = LOCALTPS
  1660.                     local_lu_address = 1
  1661.                     sscp_id = *
  1662.                     number_of_rows = 24
  1663.                     number_of_columns = 80
  1664.  
  1665.       -   Defining a partner LU and Defining a link to a partner computer or to
  1666.           the network node
  1667.  
  1668.           The definition of a partner will require a number of steps:
  1669.  
  1670.           1.  Define the physical interface
  1671.  
  1672.               This tells AIX SNA Services about the physical interface
  1673.               characteristics.
  1674.  
  1675.               For token ring, this can be done with:
  1676.  
  1677.                 LOCAL_TOKEN RING LOGICAL:
  1678.                         type = TOKENRINGLOGICAL
  1679.                         profile_name = LOCALLL
  1680.                         transmit_window_count = 10
  1681.                         dynamic_window_increment = 1
  1682.                         retransmit_count = 8
  1683.                         receive_window_count = 127
  1684.                         ring_access_priority = 0
  1685.                         inactivity_timeout = 75
  1686.                         drop_link_on_inactivity = yes
  1687.                         response_timeout = 2
  1688.                         acknowledgement_timeout = 1
  1689.                         force_disconnect_timeout = 120
  1690.                         link_trace = no
  1691.                         trace_entry_size = long
  1692.                         logical_link_type = token_ring
  1693.                         maximum_i_field = system_defined
  1694.                         maximum_i_field_size = 30729
  1695.                         physical_link_type = token_ring
  1696.  
  1697.                 LOCAL_TOKEN RING PHYSICAL:
  1698.                         type = TOKENRINGPHYSICAL
  1699.                         profile_name = LOCALPL
  1700.                         device_name = tok0
  1701.                         local_link_name = NONE
  1702.                         local_sap_address = 04
  1703.                         physical_link_type = token_ring
  1704.                         maximum_number_of_logical_links = 32
  1705.  
  1706.           2.  Define attachment profiles
  1707.  
  1708.               These profiles specify the address and link characteristics for
  1709.               connecting to your partner at the link level.  There are
  1710.               attachment profiles for incoming link activations (listen) and
  1711.               outgoing link activations (call).  In order to allow either side
  1712.               to activate the link, you must define both a listen and a call
  1713.               attachment profile.  The listen attachment must be started before
  1714.               the partner tries to activate the link by executing a command:
  1715.  
  1716.                 startsrc -t attachment -o LISTEN_PARTNER
  1717.  
  1718.               The listen attachment is defined as follows:
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725.                 LISTEN_ATTACHMENT:
  1726.                         type = ATTACHMENT
  1727.                         profile_name = LISTEN
  1728.                         control_point_profile_name = LOCALCP
  1729.                         logical_link_profile_name = LOCALLL
  1730.                         physical_link_profile_name = LOCALPL
  1731.                         logical_link_type = token_ring
  1732.                         stop_attachment_on_inactivity = no
  1733.                         station_type = secondary
  1734.                         physical_link_type = token_ring
  1735.                         remote_secondary_station_address = 1
  1736.                         smart_modem_command_sequence =
  1737.                         length_of_command_sequence = 0
  1738.                         call_type = listen
  1739.                         x25_level = 1984
  1740.                         listen_name = IBMQLLC
  1741.                         autolisten = yes
  1742.                         timeout_value = 0
  1743.                         remote_link_name_ethernet =
  1744.                         remote_link_name_token_ring =
  1745.                         remote_link_address =
  1746.                         selection_sequence =
  1747.                         length_of_selection_sequence = 0
  1748.                         network_type = switched
  1749.                         access_routing = link_address
  1750.                         remote_sap_address = 04
  1751.                         remote_sap_address_range_lower = 04
  1752.                         remote_sap_address_range_upper = EC
  1753.                         virtual_circuit_type = permanent
  1754.                         remote_station_X.25_address =
  1755.                         optional_X.25_facilities = no
  1756.                         logical_channel_number_of_PVC = 1
  1757.                         reverse_charging = no
  1758.                         rpoa = no
  1759.                         default_packet_size = yes
  1760.                         default_window_size = yes
  1761.                         default_throughput_class = yes
  1762.                         closed_user_group = no
  1763.                         closed_user_group_outgoing = no
  1764.                         network_user_id = no
  1765.                         network_user_id_name =
  1766.                         data_network_identification_code =
  1767.                         packet_size_for_received_data = 128
  1768.                         packet_size_for_transmit_data = 128
  1769.                         window_size_for_received_data = 4
  1770.                         window_size_for_transmit_data = 4
  1771.                         throughput_class_for_received_data = 1200
  1772.                         throughput_class_for_transmit_data = 1200
  1773.                         index_to_selected_closed_user_group = 0
  1774.                         lu_address_registration = no
  1775.                         lu_address_registration_name = LDEFAULT
  1776.  
  1777.               The call attachment is defined as follows:
  1778.  
  1779.                 CALL_ATTACHMENT:
  1780.                         type = ATTACHMENT
  1781.                         profile_name = CALL
  1782.                         control_point_profile_name = LOCALCP
  1783.                         logical_link_profile_name = LOCALLL
  1784.                         physical_link_profile_name = LOCALPL
  1785.                         logical_link_type = token_ring
  1786.                         stop_attachment_on_inactivity = no
  1787.                         station_type = secondary
  1788.                         physical_link_type = token_ring
  1789.                         remote_secondary_station_address = 1
  1790.                         smart_modem_command_sequence =
  1791.                         length_of_command_sequence = 0
  1792.                         call_type = call
  1793.                         x25_level = 1984
  1794.                         listen_name = IBMQLLC
  1795.                         autolisten = no
  1796.                         timeout_value = 0
  1797.                         remote_link_name_ethernet =
  1798.                         remote_link_name_token_ring =
  1799.                         remote_link_address = 400000000001
  1800.                         selection_sequence =
  1801.                         length_of_selection_sequence = 0
  1802.                         network_type = switched
  1803.                         access_routing = link_address
  1804.                         remote_sap_address = 04
  1805.                         remote_sap_address_range_lower = 04
  1806.                         remote_sap_address_range_upper = EC
  1807.                         virtual_circuit_type = permanent
  1808.                         remote_station_X.25_address =
  1809.                         optional_X.25_facilities = no
  1810.                         logical_channel_number_of_PVC = 1
  1811.                         reverse_charging = no
  1812.                         rpoa = no
  1813.                         default_packet_size = yes
  1814.                         default_window_size = yes
  1815.                         default_throughput_class = yes
  1816.                         closed_user_group = no
  1817.                         closed_user_group_outgoing = no
  1818.                         network_user_id = no
  1819.                         network_user_id_name =
  1820.                         data_network_identification_code =
  1821.                         packet_size_for_received_data = 128
  1822.                         packet_size_for_transmit_data = 128
  1823.                         window_size_for_received_data = 4
  1824.                         window_size_for_transmit_data = 4
  1825.                         throughput_class_for_received_data = 1200
  1826.                         throughput_class_for_transmit_data = 1200
  1827.                         index_to_selected_closed_user_group = 0
  1828.                         lu_address_registration = no
  1829.                         lu_address_registration_name = LDEFAULT
  1830.  
  1831.           3.  Define the connection profiles
  1832.  
  1833.               The connection profile specifies the LU name of the partner and
  1834.               defines the name that will be used by the APING program to reach
  1835.               the partner.
  1836.  
  1837.               You will again need a connection profile for both listen and call
  1838.               if you want to act as both a client and a server.
  1839.  
  1840.                 PARTNER_CONNECTION:
  1841.                         type = CONNECTION
  1842.                         profile_name = SERVER_LU_LISTEN
  1843.                         attachment_profile_name = LISTEN
  1844.                         local_lu_profile_name = LOCALLU
  1845.                         network_name = NETWORK_NAME
  1846.                         remote_lu_name = SERVER_LU
  1847.                         stop_connection_on_inactivity = no
  1848.                         lu_type = lu6.2
  1849.                         interface_type = extended
  1850.                         remote_tpn_list_name = REMOTETPS
  1851.                         mode_list_name = MODELIST
  1852.                         node_verification = no
  1853.                         inactivity_timeout_value = 0
  1854.                         notify = no
  1855.                         cp_sessions = no
  1856.                         parallel_sessions = parallel
  1857.                         negotiate_session_limits = yes
  1858.                         security_accepted = conversation
  1859.                         conversation_security_access_list_name =
  1860.  
  1861.                 PARTNER_CONNECTION:
  1862.                         type = CONNECTION
  1863.                         profile_name = SERVER_LU_CALL
  1864.                         attachment_profile_name = CALL
  1865.                         local_lu_profile_name = LOCALLU
  1866.                         network_name = NETWORK_NAME
  1867.                         remote_lu_name = SERVER_LU
  1868.                         stop_connection_on_inactivity = no
  1869.                         lu_type = lu6.2
  1870.                         interface_type = extended
  1871.                         remote_tpn_list_name = REMOTETPS
  1872.                         mode_list_name = MODELIST
  1873.                         node_verification = no
  1874.                         inactivity_timeout_value = 0
  1875.                         notify = no
  1876.                         cp_sessions = no
  1877.                         parallel_sessions = parallel
  1878.                         negotiate_session_limits = yes
  1879.                         security_accepted = conversation
  1880.                         conversation_security_access_list_name =
  1881.  
  1882.       -   Mode list profiles
  1883.  
  1884.           You will also need mode list profiles:
  1885.  
  1886.  
  1887.             MODE_MODE LIST:
  1888.                     type = MODELIST
  1889.                     Listname = MODELIST
  1890.                     list_members = BATCH,INTER
  1891.  
  1892.   o   Configuration changes specific to the client computer
  1893.  
  1894.       No special configuration is needed for AIX SNA Services to configure the
  1895.       APING client.
  1896.  
  1897.   o   Configuration changes specific to the server computer
  1898.  
  1899.       -   Defining the TP
  1900.  
  1901.           To define the transaction program profiles:
  1902.  
  1903.  
  1904.  
  1905.  
  1906.  
  1907.  
  1908.             LOCAL_TPN LIST:
  1909.                     type = TPNLIST
  1910.                     Listname = LOCALTPS
  1911.                     list_members = APINGDLOCAL
  1912.  
  1913.  
  1914.             APINGDLOCAL_TPN:
  1915.                     type = TPN
  1916.                     profile_name = APINGDLOCAL
  1917.                     tpn_name = APINGD
  1918.                     conversation_type = mapped
  1919.                     pip_data = no
  1920.                     sync_level = confirm
  1921.                     recovery_level = no_reconnect
  1922.                     full_path_to_tpn = /u/pjs/bin/APINGD
  1923.                     multiple_instances = yes
  1924.                     user_id = 0
  1925.                     server_synonym_name =
  1926.                     restart_action = once
  1927.                     communication_type = signals
  1928.                     stdin = /dev/null
  1929.                     stdout = /u/pjs/log/APINGD.stdout
  1930.                     stderr = /u/pjs/log/APINGD.stderr
  1931.                     subfields = 0
  1932.                     communication_ipc_queue_key = 0
  1933.                     tpn_name_in_hex = no
  1934.                     security_required = none
  1935.                     resource_security_access_list_name =
  1936.  
  1937.             REMOTE_REMOTE TPN LIST:
  1938.                     type = REMOTETPNLIST
  1939.                     Listname = REMOTETPS
  1940.                     list_members = APINGD
  1941.  
  1942.  
  1943.             APINGD_REMOTE TPN:
  1944.                     type = REMOTETPN
  1945.                     profile_name = APINGD
  1946.                     tpn_name = APINGD
  1947.                     pip_data = no
  1948.                     conversation_type = mapped
  1949.                     recovery_level = no_reconnect
  1950.                     sync_level = confirm
  1951.                     tpn_name_in_hex = no
  1952.  
  1953.   +---------------------------------------------------------------------------+
  1954.   |                                                                           |
  1955.   | Programmer's Guide                                                        |
  1956.   |                                                                           |
  1957.   +---------------------------------------------------------------------------+
  1958.  
  1959.   This is a quick guide on how to recompile the source code on your platform.
  1960.   You should only need to refer to this section if you did not receive the
  1961.  
  1962.   executable code with APING, or if you are interested in making changes to the
  1963.   APING source.
  1964.  
  1965.   See the appropriate makefile for your environment:
  1966.  
  1967.   MAKEFILE  ENVIRONMENT
  1968.  
  1969.   APING.OS2 Networking Services/2 or Extended Services Only
  1970.  
  1971.             This makefile will build an OS/2 only executable.  You must have
  1972.             the OS/2 Programmer's Toolkit installed.  See the comments at the
  1973.             start of the makefile for information about setting up your
  1974.             compilation environment.
  1975.  
  1976.             This makefile is written for Microsoft C 6.0.  If you would like to
  1977.             use it with IBM C/2, you will need to change the warning flag from
  1978.             "/W4" to "/W3."
  1979.  
  1980.   APING.FAM (Networking Services/2 or Extended Services) and Networking
  1981.             Services/DOS
  1982.  
  1983.             This makefile will build a family API executable that will run in
  1984.             either OS/2 or a DOS environment.  You must have the OS/2
  1985.             Programmer's Toolkit installed, and both an OS/2 CPI-C platform
  1986.             (Networking Services/2 or Extended Services) and Networking
  1987.             Services/DOS See the comments at the start of the makefile for
  1988.             information about setting up your compilation environment.
  1989.  
  1990.             This makefile is written for Microsoft C 6.0.  If you would like to
  1991.             use it with IBM C/2, you will need to change the warning flag from
  1992.             "/W4" to "/W3."
  1993.  
  1994.   APING.DOS Networking Services/DOS Only
  1995.  
  1996.             This makefile will build a DOS mode executable.  The OS/2
  1997.             Programmer's Toolkit is NOT required.
  1998.  
  1999.             This makefile is written for Microsoft C 6.0.  If you would like to
  2000.             use it with IBM C/2, you will need to change the warning flag from
  2001.             "/W4" to "/W3."
  2002.  
  2003.   APING.BOR Networking Services/DOS Only
  2004.  
  2005.             This makefile will build a DOS mode executable.  The OS/2
  2006.             Programmer's Toolkit is NOT required.
  2007.  
  2008.             This makefile is for use with Borland C++ 2.0.
  2009.  
  2010.   APING.400 AS/400
  2011.  
  2012.             This file is a REXX exec which should be uploaded to the AS/400.
  2013.             Assuming your compiler is set up to compile C code, you can simply
  2014.             run this exec to build APING and APINGD.
  2015.  
  2016.   APING.AIX AIX SNA Services
  2017.  
  2018.             This makefile is for use with the XCL compiler shipped with the AIX
  2019.             operating system.
  2020.  
  2021.   APING.VM  VM ESA
  2022.  
  2023.             This file is a REXX exec which should be uploaded to VM and renamed
  2024.             (for example, to MAKEIT EXEC).  Assuming your compiler is set up to
  2025.             compile C code, you can simply run this exec to build APING and
  2026.             APINGD.
  2027.  
  2028.             If you have access to a version of the MAKE utility, the APING.VM
  2029.             file also has a makefile for VM within comments at the end of the
  2030.             file.
  2031.  
  2032.  
  2033.  
  2034.  
  2035.  
  2036.  
  2037.