Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 
Table of contents Previous: String Tables - Editing Strings Next: String Tables - Restoring String Tables

10.3 String Tables - Saving Strings and String Tables

In this exercise, you will save the strings from the previous exercises to the user-defined string table LEARN.

  1. List strings in the string table.

    Type: TL

    You should see five user-defined strings (CT,KEYF4,NOTE,T,WORLDMAP) and two system strings (H,Y) as shown below.

    TL                                                                          
    CT          := ZA "#H                                                       
    H           := 20:42:30                                                     
    KEYF4       := ZA "USA   
    NOTE        := MAP OF THE ENTIRE WORLD! 
    STATE       := TX
    STATION     := KLAR
    T           := ZA "20:12:07             
    WORLDMAP    := MAP WORL 3 BOX=NO                                            
    Y           := 1999362                                                      
      --END OF LIST                                                             
    

    TL without any parameters lists the first 20 strings in the table that start with a number or a letter.

  2. List all the strings in the string table.

    Type: TL OUT

    Using the OUT parameter lists all strings in the string table, including the global string, ?CROSS.

  3. Save the strings you created in a string table named LEARN.

    Type: TU SAVE LEARN

    A copy of each string is saved in the user-defined string table LEARN. The strings also remain in the current string table until you delete them or restore another user-defined string table.

  4. List all user-defined string tables on your workstation.

    Type: TU LIST

    You should see a string table named LEARN with your initials associated with it.

     #   NUM  SAVE NAME     INIT  PROJ  SAVED     RESTORE  USER                 
    ---  ---  ------------  ----  ----  -------   -------  ----                 
      1    1  LEARN         USER  9999  1999362                                
    

  5. Delete all the strings in the string table.

    Type: TD ALL

    TD ALL removes the regular strings from the current string table, but does not remove the global or system strings.

    Also, when you saved the strings into the user-defined string table LEARN, a copy of each string was stored in LEARN and a copy remained in the string table. When you deleted the strings, they were removed from the current string table, but not from the user-defined string table LEARN.


Table of contents Previous: String Tables - Editing Strings Next: String Tables - Restoring String Tables

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690