SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 2 Vol 1

CHARACTER (LET)

Name:
    CHARACTER
Type:
    Let Subcommand
Purpose:
    Convert a parameter or a variable to a string based on the ASCII collating sequence.
Description:
    Most modern computer platforms use the ASCII collating sequence to code characters. In the ASCII collating sequence, the integers 0 to 255 are used to represent specific characters. Specifically

    1. 48 - 57 denote the digits 0 to 9
    2. 65 - 90 denote the upper case characters A to Z
    3. 97 - 122 denote the lower case characters a to z

    The other values represent special characters such as quotes and ampersands or non-printing characters such as tabs, carriage returns, or line feeds.

    This command allows you to create a string based on the ASCII collating sequence. For example, you can use this to insert a non-printing character (e.g., a tab or a carriage return) into a string.

Syntax:
    LET <sout> = CHARACTER <val>
    where <val> is a parameter or variable containing the ASCII collating sequence index values;
    and <sout> is a string.

    The values in <val> should be in the range 0 to 255 (real numbers will be rounded to the nearest integer). If any values outside this range are detected, an error message is printed and <sout> is not created.

Examples:
    LET SOUT = CHARACTER IVAL
Default:
    None
Synonyms:
    None
Related Commands: Applications:
    Data Management
Implementation Date:
    11/2008
Program:
     
    LET IVAL = DATA 102 105 108 101 50 51 46 100 97 116
    LET STRING SOUT = CHARACTER IVAL
        
    The resulting value of SOUT is file23.dat.

Date created: 12/4/2008
Last updated: 12/4/2008
Please email comments on this WWW page to alan.heckert@nist.gov.