May 17, 2006 #1 Enea Technical User Feb 23, 2005 90 US My field looks like this: USA/NYC/55Madison/3 CANADA/TOROR/123MAIN/14 I need to separate each piece of information between / into separate columns. How do I do in this case?
My field looks like this: USA/NYC/55Madison/3 CANADA/TOROR/123MAIN/14 I need to separate each piece of information between / into separate columns. How do I do in this case?
May 18, 2006 #2 BrianTyler IS-IT--Management Jan 29, 2003 232 GB II think you will have to build it up by creating a number of variables: l1=(left(fld,pos(fld,"/")-1) will give USA r1=(substr(fld,pos(fld,"/")+1,99) will give /NYC/55Madison/3 l2=(left(r1,pos(r1,"/")-1) will give NYC r2=(substr(r1,pos(fld,"/")+1,99) will give 55Madison/3 l3=(left(r2,pos(r2,"/")-1) will give 55Madison/ r3=(substr(r2,pos(fld,"/")+1,99) will give 3 This is theory only - I have not tested it Upvote 0 Downvote
II think you will have to build it up by creating a number of variables: l1=(left(fld,pos(fld,"/")-1) will give USA r1=(substr(fld,pos(fld,"/")+1,99) will give /NYC/55Madison/3 l2=(left(r1,pos(r1,"/")-1) will give NYC r2=(substr(r1,pos(fld,"/")+1,99) will give 55Madison/3 l3=(left(r2,pos(r2,"/")-1) will give 55Madison/ r3=(substr(r2,pos(fld,"/")+1,99) will give 3 This is theory only - I have not tested it
May 18, 2006 Thread starter #3 Enea Technical User Feb 23, 2005 90 US Got it. Thank you Upvote 0 Downvote