HomeForum
Welcome, Guest

Using Calculation Transformation Function
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Using Calculation Transformation Function

Using Calculation Transformation Function 3 years, 3 months ago #583

Hi,

We purchases Advanced ETL Processor Professional version 3.2.0.5

I have a transformation where I am utilizing a Calculation Transformation Function. This works fine until a record contains the ‘ character. The calculation then returns a null value as specified by the Calculation Properties for records in error.


How can I keep the ‘ character as part of my data field and not cause an error within my calculation? Sample from my data file is: 6 SNTV704's & 1 NSR100 Recorders

I thought about utilizing the AnsiQuotedStr function or the AnsiExtractQuotedStr function, but I am not sure how to use these and where to put them.

Please advise as to how I can make this work.

Thanks for your assistance!

Steve Vaughn

Meridian Enterprises Corporation

Re:Using Calculation Transformation Function 3 years, 3 months ago #584

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2183
  • Karma: 12
Hi Steve

Two possible solutions
1 If there is only ‘ character and never two or more
use replace transformation function before calculation to replace ‘ with ‘‘ (two quotes not double quote)
after this calculation should work

2 use two replace transformation function one before one after calculation
use first one to convert ‘ to some string for example 55xx55
use second one to convert 55xx55 back to ‘

Peter

Re:Using Calculation Transformation Function 3 years, 3 months ago #585

Both solutions work!

Thanks for your assistance. Your response time is awesome!!

Steve Vaughn

Meridian Enterprises Corporation
  • Page:
  • 1
Time to create page: 0.16 seconds

Testimonials

"DBSL software makes it much easier for us to enable new customers for automatic order processing. This alone sets us apart from the competition."

M. Clock, Director,
Clock Logistics

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top