Skip to main content
Question

How to declare a variable in the data jobs?

  • August 23, 2023
  • 1 reply
  • 17 views

vamshi.vigne
Level 3
Forum|alt.badge.img+15

I am trying to create a variable and set a dynamic value to it using the below syntax.

 

DECLARE @my_variable INT.

 

But it shows syntax error near "@". I tried checking the syntax in the Vertica SQL and i could not find a difference. It would be helpful if someone would help on this or can share your prior experience on the same.

1 reply

abhishek.chatu14
Level 11
Forum|alt.badge.img+4

Hi Vamshi,

 

There is no option to declare a variable in the data jobs, however you can use parameters in Celonis to achieve something similar.

 

Kindly find the following document for the same.

https://docs.celonis.com/en/parameters---data-integration.html

 

Hope this helps!