Previous Topic Next topic Print topic


Determining the Key Layout

If you ran the previously mentioned tutorial, you have a COBOL VSAM file called ACCTFIL. If you do not know the location in which this file was created, you can determine it with the following:

  1. Start Enterprise Server Administration.
  2. In the row for CICSDEMO, which is the enterprise server to use, click Details.
  3. Click the Properties tab.
  4. Click the MSS tab.

    The field File Path: contains the directory in which your file was created.

To determine the key structure, you can use the rebuild command:

  1. Change directory to the location pointed to by File Path.
  2. Use the rebuild command to determine the details of the file format. For example:
    rebuild /n acctfil
    Micro Focus  V6 File Management Utility
    Version 5.101.0057 Copyright ©) 1984-2009 Micro Focus (IP) Limited.
    
            File                             :   acctfil
            Organization                     :   Indexed
            Format                           :   IDX-8
            Recording Mode                   :   Variable
            Compression                      :   N
            Maximum Record Length            :               383
            Minimum Record Length            :                63
            Index Node Size                  :              1024
            Number of data records           :                 2
            Data  Created With Extfh Version :             14720
            Last  Updated With Extfh Version :             14720
    
            Key Description (where 'Start' is measured from offset 1):
              Key       Start     Length     Dupl     Key Comp   Sparse Char
                0           1          5        N
                1           6         12        Y
    /n acctfil
    

You can also locate this same information from within Enterprise Server Administration:

  1. Start Enterprise Server Administration.
  2. In the row for CICSDEMO, which is the enterprise server to use, click Details.
  3. Click ES Monitor & Control….

    This shows summary information for the application that the server is running and its transactions.

  4. In Resources, which is about halfway down on the left, expand the drop-down list and click by Group and then Groups.

    Notice that the first group is DFH$ACCT for the ACCT demonstration program. If you click the Details button for this group, you can display information about the demo’s resources, and you can click Details again to see further details on each item.

  5. Click Details beside ACCTFIL FCT ACCT CICS primer base cluster.

    This provides information on the main file, such as:

    • Minimum record size = 63
    • Maximum record size = 383
    • Primary key offset = 1
    • Primary key length = 5
  6. Click your Back button, and then click Details beside ACCTIX FCT ACCT CICS alternate index.

    This provides information on the alternate index, such as:

    • Alternate key offset = 6
    • Alternate key length = 12
    • Allow Duplicate Keys  
Previous Topic Next topic Print topic