The Calendar Routines consist of two COBOL programs, plus copybooks. The installer should be familiar with COBOL programming and compiling.
- Unload the product from the tape, by following the instructions on pages 2-3 of the CA Calendar Routines Technical Manual.
- Modify the program TRCHLGEN to run at your site. See the note under TRCHLGEN on pages 2-5 of the Technical Manual.
- Compile and link TRCHLGEN.
- Run TRCHLGEN using the following JCL.
You may either:
Create a dummy table, by removing the three dates in the JCL, or, if you know what holidays are needed in the table, add and change to the sample, and create a real holiday table now. More tables may be added later. You may dummy out any two of the last three DD statements, depending on how you will call the holiday table. If in doubt, create all three outputs at this time.
//XXXXXX JOB (9999-999),'HOLIDAY TBL1 GENR',
// NOTIFY=XXXXXX,CLASS=A,MSGLEVEL=(1,0),MSGCLASS=X
//GENR001 EXEC PGM=TRCHLGEN
//STEPLIB DD DSN=your. transcentury.loadlib,DISP=SHR
//HOLIDAYS DD *
TBL-ID=01
20040101
20040704
20041225
/*
//PRINTOUT DD SYSOUT=*
//COPYBOOK DD DSN=your.copybook..library(TRCHLT01), DISP=SHR
//HLPROGAM DD DSN=your.source.library(TRCHLP01), DISP=SHR
//FLATINFO DD DSN=flatfile.name, DISP=(NEW,KEEP),
DCB=(RECFM=FB,LRECL=8020,BLKSIZE=8020),
SPACE=(TRK,(1,1)),UNIT=SYSDA
//*
- Modify TRCENGIN. See the considerations on pages 2-10 of the Technical Manual. You must scan through TRCENGIN, and reading the comments. They will direct you to customize the program for your environment. Be sure to comment out the date and time hard coded near the beginning of the program. Do a find on "19930517" to locate these lines.
- You are now ready to Compile and link TRCENGIN.