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

  1. \/[marg=5,75]
  2.  
  3.  
  4.           HOW TO MOVE THE STATE FROM CITY FIELD TO STA FIELD
  5.           ---------------------------------------------------
  6.  
  7.      If you have imported records that have the `city,state' in the City
  8. field, you can use the following group replace to move the State into the
  9. state field and remove the comma from the city field.  
  10.  
  11. NOTE:  Before you proceed, please make sure you have a good current
  12.        backup of your TeleMagic data files! 
  13.  
  14.      The procedure takes two steps using the 'Replace in filtered records'
  15. feature of TeleMagic.  The first step is to move the state from the City
  16. field and into the State field.  
  17.  
  18.      1.  From the TeleMagic Main menu, touch 'O' for Other options.
  19.      2.  Touch 'D' for Database utilities.
  20.      3.  Touch 'R' for replace in filtered records.
  21.      4.  Next type 'STA' at the 'Change this database field'
  22.          prompt.
  23.      5.  At the 'To look like this' prompt, type the following
  24.          string:
  25.  
  26.           <rim(subs(cit,(at(",",cit)+1),2)) 
  27.      
  28.      6.  Press 'Y' at the "Are you sure?" prompt then press 'S' to 
  29.          send the output to the screen.
  30.   
  31.      7.  When the procedure is complete, press 'ESC' to bring up
  32.          the 'Database utilities' menu.
  33.  
  34.      The next step is to do a group replace in the City field to eliminate
  35. the comma after the city.  From the 'Database Utilities' menu:
  36.  
  37.      1.  Press 'R' for 'Replace in filtered records.'
  38.      2.  Next, type 'CIT' at the 'Change this database field'
  39.          prompt.
  40.      3.  At the 'To look like this' prompt, type the following
  41.          string:
  42.  
  43.           &left(cit,(at(",",cit)-1))
  44.  
  45.      4.  Press 'Y' at the 'Are you sure' prompt then press 'S' to
  46.          output to screen.
  47.  
  48.      After the procedure is complete you should do a magic rebuild.
  49.  
  50. 121291-CLW/mlm
  51. (End of 582)
  52. Replacing groups of data
  53. Group Replace
  54. \/[eject]