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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by chris93

  1. chris93

    create new variable with do loop

    this looks really interesting, I am still trying to figure things out with SAS , and making the transition from C++, it appears that SAS do loops works somehow different than C++ for loops. Are SAS Do loops always within the Data Step? Also what does count ++ 1; stand for ? Is it the...
  2. chris93

    create new variable with do loop

    btw, I tried it this way, but then the new variable s would be 3 for the entire column. data iris5; set iris1; do i=1 to 150; if MOD(i,3)= 1 THEN s=1; else if MOD(i,3)= 2 THEN s=2; else if MOD(i,3)= 0 THEN s=3; end; run;
  3. chris93

    How to read delimited data with datalines ?

    Hi all, I am trying to read the following lines with observations seperated by commas and missing values. Is it possible to use the dlm option and dsd in the input statement ? data test1; input n1 n2 n3 dlm =',' option ='dsd'; datalines; 23,34,345 23,4,45 2,3,5 3,4,545 345,,345 ; run; proc...

Part and Inventory Search

Back
Top