|
<P>Q1: you have made the questions different between the first time and the second. </P>
<P> first you have 3 variables, second time you have two variables. </P>
<P> using proc contents to check what happened to your data.if you change </P>
<P align=left none? mso-layout-grid-align: exactly; mso-line-height-rule: left; TEXT-ALIGN: 14pt; LINE-HEIGHT: 2.65pt; 0pt 0cm>jobCategory= JobCategory || JobLevel; to job= JobCategory || JobLevel, then using proc contents, you will find out the job is defined for 3 chars long. </P>
<P align=left none? mso-layout-grid-align: exactly; mso-line-height-rule: left; TEXT-ALIGN: 14pt; LINE-HEIGHT: 2.65pt; 0pt 0cm>Q3( if question): the problem is not if statement, it is the name varaible. the first two names with space in it. sas read John as name,read McCloskey as age, but it is char, so age is missing in the first obs. the second record is the same. the third record will read only 8 letters for name because it is the SAS allowed. </P>
<P align=left none? mso-layout-grid-align: exactly; mso-line-height-rule: left; TEXT-ALIGN: 14pt; LINE-HEIGHT: 2.65pt; 0pt 0cm>if you change all names within 8 and without space, you will have 2 records.</P>
<P align=left none? mso-layout-grid-align: exactly; mso-line-height-rule: left; TEXT-ALIGN: 14pt; LINE-HEIGHT: 2.65pt; 0pt 0cm>To slove this problem, you have to learn how to input data which you could get it from sas base material.</P>
<P align=left none? mso-layout-grid-align: exactly; mso-line-height-rule: left; TEXT-ALIGN: 14pt; LINE-HEIGHT: 2.65pt; 0pt 0cm> </P>
<P align=left none? mso-layout-grid-align: exactly; mso-line-height-rule: left; TEXT-ALIGN: 14pt; LINE-HEIGHT: 2.65pt; 0pt 0cm> </P>
<P align=left none? mso-layout-grid-align: exactly; mso-line-height-rule: left; TEXT-ALIGN: 14pt; LINE-HEIGHT: 2.65pt; 0pt 0cm> </P>
|