Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Jubinell

    MS Word: Indented text in a textbox

    Just to let everybody know I got this resolved by doing the following in Office 2007: * Select the textbox * Click on the line spacing option * Choose Line spacing options * Under special, change from "Hanging" to "none" I'm not sure I ever messed with this setting, but this was how I reverted...
  2. Jubinell

    MS Word: Indented text in a textbox

    Hi, I have typed some text into a textbox in Microsoft Word. Then I think I messed with some text settings and as a result, my text is indented from the second line of each paragraph onward. Something like this: ---------------------- The text in my textbox ****begins here, ****however as you...
  3. Jubinell

    Do nested comparison operators work?

    Hi, Simple question but I don't know what this is called so I haven't been able to find good results from the web. Does something like this work in a data step? where 0 < var < 6; That is to say, is it always equivalent to where var > 0 and var < 6; I've tested with a made-up dataset...
  4. Jubinell

    Match parts of a character variable against a name list

    Hi Chris, So let's say my dataset has 1 variable called description. Let's just say I have 5 observations: peter and john go to school john is a boy i like john, mark and peter i go to school peter goes to school the list that i have, called name list, contains the following: peter john...
  5. Jubinell

    Match parts of a character variable against a name list

    Hi, I have a dataset with a variable called description. A description may contain zero, one or many names matching names in a list called namelist. I'm trying to search description for these names and, when found, create new variables containing them called name1, name2, name3, etc. For the...
  6. Jubinell

    Append datasets and keep variable lengths using the parmbuff option

    Hmm....strange. I restarted sas, applied the options and reran the code and it ran just fine. (-: Thank you!
  7. Jubinell

    Append datasets and keep variable lengths using the parmbuff option

    Hi all, I found a macro that appends one dataset to the bottom of another and keeps the greater variable length between the 2 sets of variables: http://support.sas.com/kb/33/407.html I'm trying to adapt this macro so that the macro accepts as many input dataset names as I give it and outputs...
  8. Jubinell

    The Use of the &quot;where&quot;, &quot;in()&quot; and &quot;:&quot; in PROC SQL

    As far as I know, the in operator and the colon operator modifier work splendidly before, during and after a datastep. What I mean is that the following three statements all work (albeit slightly differently): data test2; set test; where textnumber in:('1','2'); run; data test2; set test...
  9. Jubinell

    Include an additional variable in a proc sql group by statement

    wow...your code is way more efficient than mine. I think it was slick to pull only matching personids using the in() statement. Thank you! One thing I've been puzzled for a while and haven't found a satisfying answer. What's the difference between the where and the having statements? I am under...
  10. Jubinell

    Include an additional variable in a proc sql group by statement

    Hi all, I have 2 datasets: b is the main dataset, a contains the list of relevant unique personIDs that I want to pull data from b based on. In particular, I'm pulling the minimum date grouped by personID. I also want to restrict the minimum date for class "A" persons only and exclude missing...
  11. Jubinell

    How to pass value of datastep variable to a SAS macro

    Isn't SAS 9.3 already released, or parts of it are? Can't wait for the ability to write UDFs!
  12. Jubinell

    How to pass value of datastep variable to a SAS macro

    Dear kdt82, That was extremely useful. I'm glad that right after joining the forum I was exposed to such quality responses from you. I've used your code with a slight modification that differentiates the interval depending on whether the second day of the month is greater or less than the...
  13. Jubinell

    How to pass value of datastep variable to a SAS macro

    Hi, I'm trying to create a macro that returns the number of months elapsed between two dates. The macro would be called in a datastep pulling in the dates from two variables and returning the months difference into a new variable. Here is what I have so far: ************************* %macro...

Part and Inventory Search

Back
Top