SAS data merge problem

I have encountered a case where I am 100% sure the syntax is correct for merging datasets, but the result includes rows that are separate (while you expect them to see on the same row).  This is likely because string variables have different length of trailing blanks.  I recommend using STRIP function on IDs before the merge:

data lengthn;
input string $char8.;

kaz = strip(string);
datalines;
abcd
abcd
abcd
abcdefgh
x y z
;

proc print data=lengthn;
run;

This situation can occur easily, but it does not generate error messages.  This is a serious problem.

ORIGINAL REFERENCE:
http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002295689.htm

How to run PHP, MYSQL, etc. on Windows

To run PHP and MySQL on your own PC, download and install WAMP.  Find the program at:

http://www.wampserver.com/en/#download-wrapper

(Upon installation, it didn't give me any annoying malaware programs, so I'm glad.)

The video at the following URL shows you how to run PHP on Windows after installing Wamp.  You write a php file (e.g., kaz.php), place it in C:\wamp\www , and open it with a browser by typing, for example, localhost/kaz.php in the URL window.  The browser will show the result.  In my case, clicking on the file itself does not provide the correct result.

http://sourceforge.net/projects/wampserver/?source=typ_redirect

 

PHP practice

Your Answer is:
”;
echo $value1+$value2;
}

if($action==”-“){
echo “Your Answer is:
”;
echo $value1-$value2;
}

if($action==”*”){
echo “Your Answer is:
”;
echo $value1*$value2;
}

if($action==”/”){
echo “Your Answer is:
”;
echo $value1/$value2;
}
}
?>

Hello World syntax for Python

 

https://automatetheboringstuff.com/chapter1/

# This program says hello and asks for my name.
print('Hello world!')
print ('What is your name?')
myName=input()
print('It is good to meet you, ' +myName)
print('The length is:')
print(len(myName))
print('What is your age?')
myAge=input()
print('You will be ' +str(int(myAge)+1) + '.')
str(27)