1.10.6 Segments Definition - segments.desc
segments.desc defines the segments within a database. One
         database (except the GSAM database), has one segments.desc, which
         is under $ART_IMS_CONFIG/db/$dbname.
               
The fields in segments.desc are mapped from SEGM statement of DBD.
Table 1-30 segments.desc
| [segm]Field | Type | Value | Description | Source in SEGM | 
|---|---|---|---|---|
                              NAME
                              
                            | 
                           
                              X(1..8)
                              
                            | 
                           Mandatory | Segment Name | 
                              NAME
                              
                            | 
                        
                              BYTES
                              
                            | 
                           
                              Integer
                              
                            | 
                           Mandatory | Maximum Length of the segment, 4~32760 | 
                              BYTES
                              
                            | 
                        
                              SEGPGM_A2E
                              
                            | 
                           
                              X(1..128 )
                              
                            | 
                           Optional | COBOL Program name used to convert segment data from open system to Mainframe | 
                              N/A
                              
                            | 
                        
                              SEGPGM_E2A
                              
                            | 
                           
                              X(1..128 )
                              
                            | 
                           Optional | COBOL Program name used to convert segment data from Mainframe to open system | 
                              N/A
                              
                            | 
                        
                              SSAPGM_A2E
                              
                            | 
                           
                              X(1..128 )
                              
                            | 
                           Optional | COBOL Program name used to convert qualified SSA for the segment from open system to Mainframe | 
                              N/A
                              
                            | 
                        
                              KFAPGM_E2A
                              
                            | 
                           
                              X(1..128 )
                              
                            | 
                           Optional | COBOL Program name used to convert Key Feedback area for the segment from Mainframe to open system | 
                              N/A
                              
                            | 
                        
Note:
For variable length segment, the BYTES definition is mapped from SEGM statement (e.g.,BYTES= (max bytes,min bytes)), max bytes must be greater or equal to min bytes. A variable length segment must starts with a 2-byte field, which defines the length of the segment including the 2-byte length field.
                  For SEGPGM_A2E, SEGPGM_E2A and SSAPGM_A2E, KFAPGM_E2A:
                  
- If any of the upper four parameters is not defined in segments.desc, $segname.desc must exist and $segname.desc will be used to do data converting as described later.
 -  
SEGPGM_A2EandSEGPGM_E2A.
WhenSEGPGM_A2EandSEGPGM_E2Amust be both defined or both not defined together. WhenSEGPGM_A2EandSEGPGM_E2Aare defined, the ODBA Plugin usesSEGPGM_A2E/SEGPGM_E2Ato do segment data converting, not use the$segname.descto perform segment data converting even if there is$segname.desc.SEGPGM_A2EandSEGPGM_E2Aare not defined, the ODBA plug-in uses the FIELDS definition in$segname.descto perform segment data converting. -  
SSAPGM_A2EWhen
WhenSSAPGM_A2Eis defined, the ODBA plug-in uses the defined COBOL program to do qualified SSA converting for this segment.SSAPGM_A2Eis not defined, the ODBA Program uses theKEYField type definition in$segname.descto convert theKEYvalue in the SSA for this segment. -  
KFAPGM_E2AWhen
IfKFAPGM_E2Ais defined, the ODBA plug-in uses the defined COBOL program to do data converting for Key Feedback area for this segment.KFAPGM_E2Ais not defined, ODBA program uses theFBAFIELDdefinition in$segname.descto do data converting for Key feedback area for this segment.For how to generate and compile the upper COBOL programs, please refer to buffer converting in Oracle Tuxedo Application Rehosting Workbench User Guide and Oracle Tuxedo Application Rehosting Workbench Reference Guide.
Put the compiled converting program underCOBPATH(for Micro Focus COBOL) orCOB_LIBRARY_PATH(for CIT) before booting Tuxedo ART for IMS servers. 
Parent topic: Configuration Files