Skip to content

/AWS1/CL_PZZ=>CREATEDATASET()

About CreateDataset

Creates an empty dataset and adds it to the specified dataset group. Use CreateDatasetImportJob to import your training data to a dataset.

There are 5 types of datasets:

  • Item interactions

  • Items

  • Users

  • Action interactions

  • Actions

Each dataset type has an associated schema with required field types. Only the Item interactions dataset is required in order to train a model (also referred to as creating a solution).

A dataset can be in one of the following states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

To get the status of the dataset, call DescribeDataset.

Related APIs

Method Signature

IMPORTING

Required arguments:

IV_NAME TYPE /AWS1/PZZNAME /AWS1/PZZNAME

The name for the dataset.

IV_SCHEMAARN TYPE /AWS1/PZZARN /AWS1/PZZARN

The ARN of the schema to associate with the dataset. The schema defines the dataset fields.

IV_DATASETGROUPARN TYPE /AWS1/PZZARN /AWS1/PZZARN

The Amazon Resource Name (ARN) of the dataset group to add the dataset to.

IV_DATASETTYPE TYPE /AWS1/PZZDATASETTYPE /AWS1/PZZDATASETTYPE

The type of dataset.

One of the following (case insensitive) values:

  • Interactions

  • Items

  • Users

  • Actions

  • Action_Interactions

Optional arguments:

IT_TAGS TYPE /AWS1/CL_PZZTAG=>TT_TAGS TT_TAGS

A list of tags to apply to the dataset.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_PZZCREATEDATASETRSP /AWS1/CL_PZZCREATEDATASETRSP