Previous topic |
Next topic |
Contents |
Glossary |
Contact z/OS |
PDF
The IEBDG utility: Generate test data Data and storage management on z/OS |
|
The IEBDG utility provides a pattern of test data to be used as a programming debugging aid. This pattern of data can then be analyzed quickly for predictable results. You can either use one of the IBM-supplied patterns or you can specify your own pattern of data to be generated in a variety of fields in a data set. The fields can be changed for each record with ripple, wave, shift, roll, and other field permutations. IEBDG can accept input data records and overlay specified fields in the input with generated data. The following is a simple example of IEGDB use:
//GENDATA7 JOB 1,CHRIS,MSGCLASS=X // EXEC PGM=IEBDG //SYSPRINT DD SYSOUT=* //OUT DD DISP=(NEW,CATLG),DSN=CHRIS.TEST.DATA,UNIT=3390, // VOL=SER=WORK01,SPACE=(CYL,(10,1)), // DCB=(RECFM=FB,LRECL=80,BLKSIZE=8000) //SYSIN DD * DSD OUTPUT=(OUT) FD NAME=FIELD1,LENGTH=30,FORMAT=AL,ACTION=RP FD NAME=FIELD2,LENGTH=10,PICTURE=10,'TEST DATA ' FD NAME=FIELD3,LENGTH=10,FORMAT=RA CREATE QUANTITY=90000,NAME=(FIELD1,FIELD2,FIELD3) END /* This job creates a new data set, CHRIS.TEST.DATA, with 90,000 records. Each record is 80 bytes, as specified in the DCB parameters in the DD statement. The control statements specify three fields that occupy the first 50 bytes of each record. By default, IEBDG fills the remaining bytes with binary zeros. The three fields are:
The utility can generate more complex patterns, but this example is typical of simple usage. It also illustrates an estimate of the amount of disk space needed for data:
The space requirements (SPACE) for the data set are based on the following
assumptions:
|
Copyright IBM Corporation 1990, 2010
|