Mapping differences for an RRDS data set

There are two differences in the mapping process for an RRDS data set. The first difference is in the VSAM file type field, which must have a value of RRDS or RRDV. This is specified in the "Insert file panel", which is shown in Figure 2.

The second difference concerns the mapping of the key field, as illustrated in Figure 1.

Figure 1. Data set mapping for an RRDS data set
 
--------------------- CICS VT: List of fields for VIDRRDS  ------- Row 1 of 11 
Command ===> ________________________________________________ Scroll ===> CSR_ 
                                                                               
VSAM file type : RRDS     Creator   : VID                                     +
Data set length: 00080    Table name: VID_ITEM                                +
                                                                               
Actions: S Display, U Update, I Insert, D Delete                               
                                                                               
A Field    Bytes Start Type DB2 column name                  Exit     Pic Par  
- -------- ----- ----- ---- ------------------------------   -------- --- ---  
_ RRNKEY   00004 00001   C  RRN_NUMBER                     +
_ VIDF0001 00006 00001   C  ITEM_NUMBER                    +                   
_ VIDF0002 00012 00007   C  ITEM_NAME                      +                   
_ VIDF0003 00006 00019   C  ITEM_COLOUR                    +                   
_ VIDF0004 00004 00025   C  ITEM_WEIGHT                    +                   
_ VIDF0005 00004 00029   P  ITEM_COST                      +                   
_ VIDF0006 00003 00033   C  ITEM_REORDER_NO                +                   
_ VIDF0007 00003 00036   C  ITEM_SUPP_CODE                 +                   
_ VIDF0008 00005 00039   P  ITEM_DATE_FSHIP                +           Y       
_ VIDF0009 00002 00044   C  ITEM_SHELF_LIFE                +                   
_ VIDF0010 00035 00046   C  ITEM_DESCRIPTION               +                   

The field RRDSKEY is mapped to the INTEGER column RRN_NUMBER, which is defined in the DDL in Figure 1 as the DB2® primary key. The field starts at position 1 for a length of 4 bytes. In the VSAM record represented by the mapping in Figure 1, the copybook field ITEM-NUMBER is the first field and starts in position 1. In effect, the first field in the VSAM file overlays the key field from a mapping perspective.

RRDS files must be mapped this way. Be aware of this rule when you are manually mapping RRDS files


Information Information

Feedback


Timestamp icon Last updated: Monday, 10 February 2014


http://pic.dhe.ibm.com/infocenter/cicsts/v5r1/topic/com.ibm.cics.vt.doc//topics/cvtug_mapdiff_rrds.html