• Skip to main content
  • Skip to footer
Revelwood Logo

Revelwood

Your SUPER-powered WP Engine Site

  • Who We Are
    • About Us
      • Our Company
      • Our Team
      • Partners
    • Careers
      • Join Our Team
  • What We Do
    • Solutions
      • Workday Adaptive Planning
      • IBM Planning Analytics
      • BlackLine
    • Services
      • Implementation Services
      • Customer Care
        • Help Desk
        • System Administration as a Service
      • Training
        • Workday Adaptive Planning Training
        • IBM Planning Analytics / TM1 Training
    • Products
      • DataMaestro
      • LightSpeed
      • IBM Planning Analytics Utilities
  • How We Help
    • Use Cases
    • Client Success Stories
  • How We Think
    • Knowledge Center
    • Events
    • News
  • Contact Us

IBM Planning Analytics Tips & Tricks

IBM Planning Analytics Tips & Tricks: Code Char

 

Tips & Tricks

August 3, 2021

By Lee Lazarow

Have you ever written a TurboIntegrator script and wanted to check the first character of a value to see if it was a number or a letter? Have you ever needed to insert a single or double quote into a string without “breaking” your code? Have you ever wanted to easily convert a lower case letter into an upper case letter? All of this can be done by referencing the ASCII code associated with the character.

ASCII is an abbreviation for American Standard Code for Information Interchange and is used as a standard for electronic communication. ASCII codes represent text for computers. Every key on your keyboard has a defined code number. Tables associated with these codes can be found via a simple Internet search.

There are two functions in IBM Planning Analytics / TM1 that allow you to reference the ASCII code:

  • CHAR returns the character associated with a numeric ASCII code. For example, CHAR(76) returns a capital L.
  • CODE returns the numeric ASCII code associated with a character. For example, CODE(‘Lee’, 1) returns 67 since the first character is a capital L.

These functions can be used in conjunction with other functions and logic to perform various tasks:

  • If the first character of a value has an ASCII code in the range of 48-57, then the value is a number.
  • If the first character of a value does not have an ASCII code in the range of 48-57, 65-90, or 97-122 then the value is not a number or a letter.
  • ASCII code 39 is a single quote and ASCII code 34 is a double quote.
  • All capital and lowercase codes have the same ASCII code value difference, so you can add or subtract 32 to convert between uppercase and lowercase.

These functions allow you to check and manipulate data without having to ignore the rules of TurboIntegrator coding.

IBM Planning Analytics, powered by TM1, is full of new features and functionality. Need advice? Our team here at Revelwood can help. Contact us for more information at info@revelwood.com. We post new Planning Analytics Tips & Tricks weekly in our Knowledge Center and in newsletters.

Read more IBM Planning Analytics Tips & Tricks:

IBM Planning Analytics Tips & Tricks: Creating Buttons for TurboIntegrator Scripts

IBM Planning Analytics Tips & Tricks: Maintaining Subset-Driven Consolidations

IBM Planning Analytics Tips & Tricks: Compatibility of Views and Subsets

Author

  • Lee Lazarow

    View all posts
    • Categories

      • Accounting and Accounts Receivable
      • Awards & Recognition
      • Data Analytics in Finance
      • Financial Close & Consolidation
      • FP&A Done Right
      • IBM Planning Analytics Tips & Tricks
      • News & Events
      • Success Stories
      • Tech Bulletins
      • Workday Adaptive Planning Insights
      • Workday Adaptive Planning Tips & Tricks

    Popular Posts

    Authors

    Adam Riskin
    Adam Riskin
    Brian Colucci
    Brian Colucci
    Brian Combs
    Brian Combs
    Cameron Burke
    Cameron Burke
    Dave Miersch
    Dave Miersch
    Ivan Cepero
    Ivan Cepero
    John Pra Sisto
    John Pra Sisto
    Jonathan Dunn
    Jonathan Dunn
    Ken Wolf
    Ken Wolf
    Lee Lazarow
    Lee Lazarow
    Lisa Minneci
    Lisa Minneci
    Luke Griffie
    Luke Griffie
    Marc Assenza
    Marc Assenza
    Mary Luchs
    Mary Luchs
    Michael Mari
    Michael Mari
    Michelle Song
    Michelle Song
    Revelwood
    Revelwood
    Robert Nordhagen
    Robert Nordhagen
    Simon Foley
    Simon Foley
    Thomas McDade
    Thomas McDade

    Sign up for our newsletter

    Connect

Footer

Revelwood Overview

Revelwood helps finance organizations close, consolidate, plan, monitor and analyze business performance. As experts in solutions for the Office of Finance, we partner with best-in-breed software companies by applying best practices guidance and our pre-configured applications to help businesses achieve their full potential.

EXPERTISE

  • Workday Adaptive Planning
  • IBM Planning Analytics
  • BlackLine

ABOUT

  • Who We Are
  • What We Do
  • How We Help
  • How We Think
  • Privacy

CONNECT

World Headquarters

Florham Park, NJ | 201 984 3030

European Headquarters

London & Edinburgh | +44 (0)131 240 3866

Latin America Office

Miami, FL | 201 987 4198

Email
info@revelwood.com

Copyright © 2025 · Revelwood Inc. All rights reserved. Revelwood® and the Revelwood logo are registered marks of Revelwood Inc.