# Creating a regular or streaming Pentaho Data Service

You can create either a regular data service or a [streaming data](/pdia-data-integration/9.3-data-integration/streaming-analytics.md) service. A streaming data service is commonly used when creating a streaming data dashboard with CTools. See **Pentaho CTools**.

Perform the following steps to create a data service, name it, then select the step that outputs the data you want to be exposed to the data service:

1. [Create or open a transformation in the PDI client](/pdia-data-integration/9.3-data-integration/data-integration-perspective-in-the-pdi-client/work-with-transformations-cp.md).

   It is helpful to review [Pentaho Data Service SQL support reference and other development considerations](/pdia-data-integration/9.3-data-integration/advanced-topics-pentaho-data-integration-overview/pentaho-data-services/test-a-pentaho-data-service/examine-test-results/pentaho-data-service-sql-support-reference-and-other-development-considerations.md) as you create or review the transformation so that you understand which SQL commands are supported.
2. Save the transformation to the Pentaho Server.
3. Right-click the transformation step that outputs the data you want to make available as a data service, then select **Data Services** > **New**.
4. Enter a unique name for the data service in the **Service Name (Virtual Table Name)** text box.

   The virtual table that the data service creates has the same name as the data service.

   **Note:** Ensure the name is unique; no other data service stored locally or published to the Pentaho Server should have the same name.
5. Verify that the Output step is the step you selected to become the data service in Step 3. If you need to change it, select the correct step name from the list.
6. If you are working with streaming data, select **Streaming** for the **Data Service Type**.
7. Click **OK** to save the data service and exit the window.

   The [data service badge](/pdia-data-integration/9.3-data-integration/advanced-topics-pentaho-data-integration-overview/pentaho-data-services/creating-a-regular-or-streaming-pentaho-data-service/data-service-badge.md) is added to the step icon.

A recommended but optional step, is to follow the steps in [Test a Pentaho Data Service](/pdia-data-integration/9.3-data-integration/advanced-topics-pentaho-data-integration-overview/pentaho-data-services/test-a-pentaho-data-service.md) so that you can test your data service. Testing can help you correct, refine, and optimize your data service so it runs more efficiently.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentaho.com/pdia-data-integration/9.3-data-integration/advanced-topics-pentaho-data-integration-overview/pentaho-data-services/creating-a-regular-or-streaming-pentaho-data-service.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
