BDAM data sets

CICS supports access to keyed and nonkeyed BDAM data sets. To construct and format such data sets, you use BDAM.

A BDAM data set must contain data before it is used in a CICS® run. You load the data set using a batch program that writes the records sequentially. An example of this is Figure 21.

Figure 21. Sample JCL to create and load a BDAM data set
//BDAM EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=A
//SYSIN    DD DUMMY
//SYSPRINT DD SYSOUT=A
//SYSUT1   DD DSN=CICSTS31.bdam.user.file.init,DISP=SHR        1 
//SYSUT2   DD DSN=CICSTS31.bdam.user.file,DISP=(,CATLG),       2 
//         SPACE=(TRK,(1,1)),UNIT=3380,VOL=SER=volid,
//         DCB=(RECFM=F,LRECL=80,BLKSIZE=80,DSORG=DA)          3 

Notes:

 1  The input data set (called SYSUT1 in this example) should be physically sequential and have attributes that are compatible with the DCB for the output data set (called SYSUT2 in this example; see note 3). In particular:

 2  When you create a data set, you define a data set name (DSNAME) of up to 44 characters. This data set name uniquely identifies the data set to your MVS™ system.

 3  The DCB parameter for the output data set should specify the following:

These options are specified on the DFHFCT TYPE=FILE definition. The CICS Resource Definition Guide gives information about defining files using DFHFCT TYPE=FILE options. A data set created by this example, and loaded with data such as that shown in Figure 22, would have the following attributes specified in its FCT entry:

Figure 22. Sample data for loading a BDAM data set
RECORD 1 DATA FOR RECORD 1     RECORD 2 DATA FOR RECORD 2
RECORD 3 DATA FOR RECORD 3     RECORD 4 DATA FOR RECORD 4

  ·
  ·
  ·
RECORD98 DATA FOR RECORD 98 RECORD99 DATA FOR RECORD 99 1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
[[ Contents Previous Page | Next Page Index ]]