SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

DataFlux Expression Challenge

Reply
Contributor
Posts: 42

DataFlux Expression Challenge

As part of a Data Job, we are including an expression node, trying to achieve a simple scoring output, the code we are using is as follows

Real Score

Score = `Triggers` *100  / `Rows_Process`

We were expecting an .decimal as part of the output, however we are getting the output as 1 or 0,  Trying to understand if we are doing anything wrong with our formulation.

appreciate any help

Ronny

SAS Employee
Posts: 85

Re: DataFlux Expression Challenge

Do you need parenthesis in your calculation?

Try this:

Score = (`Triggers` * 100)  / `Rows_Process`



What are the variable types for Triggers and Rows_Process?


Coercion may be causing this.


If a part of an expression is not the type expected in that context, it is converted into the correct type. A type can be coerced into some other types.

-shawn

Ask a Question
Discussion stats
  • 1 reply
  • 265 views
  • 0 likes
  • 2 in conversation