Scope of Project
In this project you will define a new "file" to the MAGEC Dictionary. Actually, you will define a "dummy" which is modelled after the VAC Data Class used in the other tutorial projects. The purpose for this project is to teach you the steps necessary to define your own files to the Dictionary. This project should be done, or at least reviewed, by all Database Administrators and by all Application Developers. The Data Class you will define is the "VAD" (Vacation Dummy). The actual file name will be:
\MAGEC\VADK1.DAT (for PC MAGEC with Realia COBOL)
"MAGEC.VAD.CLUSTER" (for mainframe VSAM -- DD/DLBL Name = VADK1)
The file has one key (VADK1) which is the Employee number (9 digits) followed by nine bytes of blank padding
a total of 18 bytes long. The file has two Elements, (VAD00 and VAD01). Element VAD00 is the 36-byte Audit Stamp, Element VAD01 is the actual data portion of the record.
If you are doing this project on a mainframe you may not wish to actually follow through with the execution of IDCAMS and so forth. On the PC, however, it is very simple to create the file using the MAGEC utility "MAGINIT", and then later to delete it using the DOS command "ERASE".
The procedure you will follow to define (and create) the new Data Class is:
1. Use DCLADD to define the Data Class.
2. Use KYFADD to define the Key.
3. Use ELTADD to define the Element(s).
4. Use MAGECLBR to define the Data Items (fields).
5. Use DITCHG to further tailor the Data Item definitions.
6. Use DITGEN to generate a standard COBOL definition.
7. Use MAGINIT to create and initialize the file (on PC)