Create Buckets By StartDate EndDate Name

This command is used to create buckets for the specified bucket details such as start date, end date and name. The details of multiple buckets can also be specified.

An explicit date format can be specified by prefixing the date values with a format specifier indicating the sequence of (d)ay, (m)onth and (y)ear. For example:

  • (dmy): 31-12-2019 represents ‘31st Dec 2019’
  • (ymd): 19-01-02 represents ‘2nd Jan 2019’
  • (mdy): 3-1-19 represents ‘1st Mar 2019’
Syntax
Create Buckets By StartDate EndDate Name: <start date1>, <end date1>, <bucket name1> [, <start date2>, <end date2>, <bucket name2>, ...];
Log Message
This message is logged to indicate the number of buckets created, on successful completion:
APACS302=Created {0} buckets.
{0} = Number of buckets created.
This table lists the exception conditions and the related error message (if applicable) during the execution of the command:
Exception condition Error message
The imported bucket numbers must be unique, else the command fails to execute with an error.
APACS260=Bucket name {0} is duplicated in multiple buckets
{0} = The first duplicated bucket name
The imported calendar must not contain gaps in dates between buckets, else the command fails to execute with an error.
APACS247=Gap between bucket {0} end date {1} and bucket {2} start date {3}. They should be the same
  • {0} = First bucket name
  • {1} = End date of first bucket
  • {2} = Second bucket name
  • {3} = Start date of second bucket
The imported calendar must not contain overlapping of bucket start date and end date, else the command fails to execute with an error.
Create Buckets By StartDate EndDate Name:
  • {0} = First bucket name
  • {1} = End date of first bucket
  • {2} = Second bucket name
  • {3} = Start date of second bucket
Each bucket must have an end date greater than the start date, else the command fails to execute with an error.
APACS248=Bucket {0} start date {1} is after end date {2}.
  • {0} = Bucket name
  • {1} = Start date of bucket
  • {2} = End date of bucket
This table lists the examples of the Create Buckets By StartDate EndDate Name command:
Requirement Syntax
Create two weekly buckets:
  • Week 44, from 26-Oct-2020 to 02-Nov-2020
  • Week 45, from 02-Nov-2020 to 09-Nov-2020
Create Buckets By StartDate EndDate Name:
  • 26-10-2020, 02-11-2020, Week 44,
  • 02-11-2020, 09-11-2020, Week 45;
Create one daily bucket for 26-Oct-2020.
Create Buckets By StartDate EndDate Name: (mdy) 10-26-2020, (mdy) 10-27-2020, 26-Oct-2020;