<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PlaceName"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:sans-serif;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
tt
        {font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Tahoma;
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
11.0pt;font-family:Tahoma;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
11.0pt;font-family:Tahoma;color:blue'>I think Lance's suggestion will work,
except, possibly, for the TIME column. If that value may be variable
length (eg '8 AM') then you may get better results with this…<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
11.0pt;font-family:Tahoma;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
11.0pt;font-family:Tahoma;color:blue'>Right( [oldfield] ,(Len( [oldfield])
-Instr( [oldfield] ," ")))<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
11.0pt;font-family:Tahoma;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
11.0pt;font-family:Tahoma;color:blue'>Note that the space character between the
double quotes is important.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
11.0pt;font-family:Tahoma;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
11.0pt;font-family:Tahoma;color:blue'>If all of your time values are in a five
character format (eg '08 AM') then Lance's expression should work just fine.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
11.0pt;font-family:Tahoma;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
11.0pt;font-family:Tahoma;color:blue'>Michele<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
11.0pt;font-family:Tahoma;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
11.0pt;font-family:Tahoma;color:blue'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='margin-left:.5in;text-align:center'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
shrug-l-bounces@lists.dep.state.fl.us
[mailto:shrug-l-bounces@lists.dep.state.fl.us] <b><span style='font-weight:
bold'>On Behalf Of </span></b>lance.peterson@dot.state.fl.us<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, October 06, 2006
2:40 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Shrug List<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: shrug-l: Split a
column in attribute table</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><br>
</span></font><font size=2 face=sans-serif><span style='font-size:10.0pt;
font-family:sans-serif'>For me, the easiest way to do this will be to add a
Year, Month, Date and Time column to the shapefile database in ArcCatalog. Do
this by displaying the table in the Preview tab and then use the Options
dropdown to "Add Field". I would add the columns as a String data
type.</span></font> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>Then
open the shapefile in ArcMap and in the Editor Toolbar select Start Editing.
Right click the layer and select Open Attribute Table. In the Table Window, use
Options to Select All.</span></font> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>Then
right click on a column you added, i.e. Year, and select Calculate Values. You
can use a string function to parse the data in your first column. For example:</span></font>
<br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>Year
= Mid( [SingleColumn], 1,4)</span></font> <br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>Month
= Mid( [SingleColumn], 5, 2)</span></font> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>For
the Time you may want to try = Right( [SingleColumn], 5)</span></font> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>You
may have to play with the beginning and ending column values to parse the data
correctly.</span></font> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>You
can search for "tables, editing" in ArcGIS help, Index tab, for more
information on editing tables.</span></font> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>I'd
be willing to bet that there are a couple of other ways to do this.</span></font>
<br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'><br>
Lance Peterson<br>
Peterson Consulting / FL Dept. of Transportation<br>
Business Systems Support Office<br>
Office of Information Systems<br>
Phone: 850-410-5545<br>
</span></font><br>
<br>
<o:p></o:p></p>
<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
style='width:100.0%;margin-left:.5in'>
<tr>
<td width="39%" valign=top style='width:39.98%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><b><font size=1 face=sans-serif><span style='font-size:
7.5pt;font-family:sans-serif;font-weight:bold'>Gary Watry
<watry@steam.coaps.fsu.edu></span></font></b><font size=1
face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'> </span></font><br>
<font size=1 face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>Sent
by: shrug-l-bounces@lists.dep.state.fl.us</span></font> <o:p></o:p></p>
<p><font size=1 face=sans-serif><span style='font-size:7.5pt;font-family:
sans-serif'>10/06/2006 01:50 PM</span></font> <o:p></o:p></p>
<table class=MsoNormalTable border=1 cellpadding=0>
<tr>
<td valign=top bgcolor=white style='background:white;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><font size=1
face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>Please
respond to<br>
watry@coaps.fsu.edu</span></font><o:p></o:p></p>
</td>
</tr>
</table>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><o:p></o:p></span></font></p>
</td>
<td width="58%" valign=top style='width:58.98%;padding:.75pt .75pt .75pt .75pt'>
<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
style='width:100.0%'>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=right style='text-align:right'><font size=1
face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>To</span></font><o:p></o:p></p>
</td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=1 face=sans-serif><span style='font-size:
7.5pt;font-family:sans-serif'>Shrug List
<shrug-l@lists.dep.state.fl.us></span></font> <o:p></o:p></p>
</td>
</tr>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=right style='text-align:right'><font size=1
face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>cc</span></font><o:p></o:p></p>
</td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</td>
</tr>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=right style='text-align:right'><font size=1
face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>Subject</span></font><o:p></o:p></p>
</td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=1 face=sans-serif><span style='font-size:
7.5pt;font-family:sans-serif'>shrug-l: Split a column in attribute table</span></font><o:p></o:p></p>
</td>
</tr>
</table>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<table class=MsoNormalTable border=0 cellpadding=0>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</td>
</tr>
</table>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p></o:p></span></font></p>
</td>
</tr>
</table>
<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><br>
<br>
<br>
</span></font><tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>Is
there a way to split a column in a shapefile attribute column into </span></font></tt><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt><font face="Courier New">several columns</font></tt><br>
<tt><font face="Courier New">i.e.</font></tt><br>
<tt><font face="Courier New">20060401 11 AM</font></tt><br>
<br>
<tt><font face="Courier New">into</font></tt><br>
<br>
<tt><font face="Courier New">2006 | 04 | 01 | 11 AM |</font></tt><br>
<br>
<tt><font face="Courier New">-- </font></tt><br>
<tt><font face="Courier New">Gary L. Watry</font></tt><br>
<tt><font face="Courier New">GIS Coordinator</font></tt><br>
<tt><font face="Courier New">Center for Ocean-Atmospheric Prediction Studies</font></tt><br>
<tt><font face="Courier New">FSU / COAPS</font></tt><br>
<st1:place w:st="on"><st1:PlaceName w:st="on"><tt><font face="Courier New">Johnson</font></tt></st1:PlaceName><tt><font
face="Courier New"> <st1:PlaceType w:st="on">Building</st1:PlaceType></font></tt></st1:place><tt><font
face="Courier New">, RM 215</font></tt><br>
<st1:Street w:st="on"><st1:address w:st="on"><tt><font face="Courier New">2035
East Paul Dirac Drive</font></tt></st1:address></st1:Street><br>
<st1:place w:st="on"><st1:City w:st="on"><tt><font face="Courier New">Tallahassee</font></tt></st1:City><tt><font
face="Courier New">, <st1:State w:st="on">Florida</st1:State> <st1:PostalCode
w:st="on">32306-2840</st1:PostalCode></font></tt></st1:place><br>
<br>
<tt><font face="Courier New">Phone (850) 645-7457</font></tt><br>
<br>
<tt><font face="Courier New">E-Mail: watry@coaps.fsu.edu</font></tt><br>
<br>
<br>
<br>
<br>
<tt><font face="Courier New">_______________________________________________</font></tt><br>
<tt><font face="Courier New">SHRUG-L mailing list</font></tt><br>
<tt><font face="Courier New">SHRUG-L@lists.dep.state.fl.us</font></tt><br>
<tt><font face="Courier New">http://lists.dep.state.fl.us/mailman/listinfo/shrug-l</font></tt></span></font><o:p></o:p></p>
</div>
</body>
</html>