Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: String task

From   Daniel Marcelino <>
Subject   st: String task
Date   Fri, 1 Apr 2011 12:51:56 -0300

Hello all,

I have I task with string that is split a string into two vars.
So every character before first "/" slash if is there,  must be copied
to var1. Also, everything after  "/" slash or if there is no "/"
everything in the cell must be placed into var2.
How can I do it?

gen str8 day = ""
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index