home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / TEXT / TM12_TIP.ZIP / 537.TXT < prev    next >
Text File  |  1991-12-18  |  1KB  |  48 lines

  1. I did a User Defined Import and my city and state are both in the city
  2. field.  How do I move the state to the state field?
  3.  
  4.  
  5. When you touch 'C' for Change, is there a comma between the city and state?
  6. And the state field is empty?
  7.  
  8.     YES
  9.     ---
  10.     We will be able to perform two Group Replaces to correct this,
  11.     but first I need to make sure that you have a current backup.
  12.     Also, if you only need to change some records, you will need to 
  13.     write a filter to select those (such as CIT CN , ).
  14.  
  15.  
  16.     [If they have not performed a TeleMagic Backup, show them
  17.     how to do it, and have them write down the Group Replace
  18.     commands].
  19.  
  20.     Have your filter in use, if applicable. Then from the TeleMagic 
  21.       Main Menu, touch 'O' for Other Options and D for Database Utilities.
  22.     Touch 'R' for Group Replace Option. First replace the STA field
  23.     with:
  24.  
  25.         <RIM(SUBS(CIT,(AT(",",CIT+1),3))
  26.  
  27.     This command will move everything after the comma into the state
  28.     field.
  29.     
  30.     Then replace CIT with:
  31.  
  32.         &LEFT(CIT,(AT(",",CIT)-1))
  33.  
  34.     This will replace city with everything up to the character before
  35.     the comma.
  36.  
  37.     
  38.     NO
  39.     --
  40.       [Note: If there is a space instead of a comma separating the 
  41.      city and state, use the expressions above, but substitute the
  42.      AT(",",CIT)-1   with   AT("space",CIT)-1 ].
  43.  
  44.  
  45.  
  46. End 537
  47. 05-02-91 (new) VGK
  48. Index:Mass Replace