Populate a Period table

Once the Period table has been deployed to the Datastore Runtime, you can inject Period table data.

  1. Create or complete the period.dat file located in the Datastore/getStarted/withDatastore/data directory.

Structure of the file:

Field Offset Length Description
Period name 1 6

The maximum length is 6.

The Period Name includes:

  • Year (offset 1, length 2)
  • Month (offset 3, length 2)
Begin date 7 8 Format - CCYYMMDD
End date 15 8 Format - CCYYMMDD
Cut-off date 23 8 Format - CCYYMMDD

Example:

1201..201201022012013120120203

1202..201202012012022920120305

1203..201203012012040120120404

1204..201204022012050120120504

1205..201205022012053120120605

  1. Insert the period data to be used in the partition computation:
    dstools inject --collection PERIOD_COLLECTION <Datastore>/getStarted/withDatastore/data/period.dat

Related Links