HomeForum
Welcome, Guest

Utilizing a Calculation Transformation Function
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Utilizing a Calculation Transformation Function

Utilizing a Calculation Transformation Function 11 months, 2 weeks ago #2858

  • SteveK
  • OFFLINE
  • Junior Boarder
  • Posts: 32
  • Karma: 0
Hi,

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 XXXXX'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

Re: Utilizing a Calculation Transformation Function 11 months, 2 weeks ago #2859

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2182
  • 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 conver 55xx55 back to ‘

Mike,
DB Software Laboratory

Re: Utilizing a Calculation Transformation Function 11 months, 2 weeks ago #2860

  • SteveK
  • OFFLINE
  • Junior Boarder
  • Posts: 32
  • Karma: 0
Hi Mike,

Both solutions work!

Thanks for your assistance. Your response time is awesome!!
Steve
  • Page:
  • 1
Time to create page: 0.16 seconds

Testimonials

I just transferred 10,000,000 million records from the main SQL Anywhere database over the network into a Postgres database without a hitch.

Thank you
Thank you
Thank you

George…

!!!!! You guys rock!!!!!!!!

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