How do I install the Calendar Routines

Document ID : KB000055678
Last Modified Date : 14/02/2018
Show Technical Document Details

The steps required to install CA Calendar Routines are listed below. The Calendar Routines consist of two COBOL programs, plus copybooks. The installer should be familiar with COBOL programming and compiling.

  1. Unload the product from the tape, by following the instructions on page 2-3 of the CA Calendar Routines Technical Manual.

  2. Modify program TRCHLGEN to run at your site. See the note under TRCHLGEN on page 2-5 of the Technical Manual.

  3. Compile and link TRCHLGEN.

  4. 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
    //*
  5. Modify TRCENGIN. See the considerations on page 2-10 of the Technical Manual. You must scan through TRCENGIN, 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.

  6. You are now ready to Compile and link TRCENGIN.