<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Differences in salary men and women in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460177#M5450</link>
    <description>&lt;P&gt;Here's what I entered:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%include&amp;nbsp; '~/425/425_Final_Paper/practice program.sas' /lrecl=1000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         
 74         %include  '~/425/425_Final_Paper/practice program.sas' /lrecl=1000;
 NOTE: Libref PRACTICE was successfully assigned as follows: 
       Engine:        V9 
       Physical Name: /home/sastuck/425/425_Final_Paper
 
 NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update mode. Temporary parameter values will be saved to 
 WORK.PARMS.PARMS.SLIST.
 83          /**********************************************************************
 84          *   PRODUCT:   SAS
 85          *   VERSION:   9.4
 86          *   CREATOR:   External File Interface
 87          *   DATE:      04MAY18
 88          *   DESC:      Generated SAS Datastep Code
 89          *   TEMPLATE SOURCE:  (None Specified.)
 90          ***********************************************************************/
 91             data PRACTICE.COMPUSTAT_EXECUCOMP    ;
 92             %let _EFIERR_ = 0; /* set the ERROR detection macro variable */
 93             infile '~/425/425_Final_Paper/CompuStat_Execucomp.csv' delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=2 ;
 94                informat EXEC_FULLNAME $614. ;
 95                informat CFOANN $7. ;
 96                informat EXECDIR $2. ;
 97                informat OLD_DATAFMT_FLAG $4. ;
 98                informat INTERLOCK $3. ;
 99                informat REPRICE best32. ;
 100               informat EXECRANK $8. ;
 101               informat CO_PER_ROL $5. ;
 102               informat CONAME $34. ;
 103               informat TITLEANN $246. ;
 104               informat CEOANN $3. ;
 105               informat SALARY best32. ;
 106               informat BONUS $12. ;
 107               informat STOCK_AWARDS $30. ;
 108               informat OPTION_AWARDS $52. ;
 109               informat NONEQ_INCENT $37. ;
 110               informat PENSION_CHG $9. ;
 111               informat OTHCOMP $9. ;
 112               informat TOTAL_SEC best32. ;
 113               informat TOTAL_CURR best32. ;
 114               informat TOTAL_ALT1 best32. ;
 115               informat TOTAL_ALT2 best32. ;
 116               informat TERM_PYMT best32. ;
 117               informat CHG_CTRL_PYMT best32. ;
 118               informat SHROWN_TOT best32. ;
 119               informat SHROWN_TOT_PCT best32. ;
 120               informat SHROWN_EXCL_OPTS best32. ;
 121               informat SHROWN_EXCL_OPTS_PCT best32. ;
 122               informat OPT_EXER_NUM best32. ;
 123               informat OPT_EXER_VAL best32. ;
 124               informat SHRS_VEST_NUM best32. ;
 125               informat SHRS_VEST_VAL best32. ;
 126               informat AGE best32. ;
 127               informat OPTION_AWARDS_NUM best32. ;
 128               informat OPTION_AWARDS_FV best32. ;
 129               informat STOCK_AWARDS_FV best32. ;
 130               informat OPT_UNEX_EXER_NUM best32. ;
 131               informat OPT_UNEX_UNEXER_NUM best32. ;
 132               informat OPT_UNEX_EXER_EST_VAL best32. ;
 133               informat OPT_UNEX_UNEXER_EST_VAL best32. ;
 134               informat STOCK_UNVEST_NUM best32. ;
 135               informat STOCK_UNVEST_VAL best32. ;
 136               informat EIP_UNEARN_NUM best32. ;
 137               informat EIP_UNEARN_VAL best32. ;
 138               informat PENSION_VALUE_TOT best32. ;
 139               informat PENSION_PYMTS_TOT best32. ;
 140               informat DEFER_CONTRIB_EXEC_TOT best32. ;
 141               informat DEFER_CONTRIB_CO_TOT best32. ;
 142               informat DEFER_EARNINGS_TOT best32. ;
 143               informat DEFER_WITHDR_TOT best32. ;
 144               informat DEFER_BALANCE_TOT best32. ;
 145               informat DEFER_RPT_AS_COMP_TOT best32. ;
 146               informat EXECRANKANN best32. ;
 147               informat OTHANN $1. ;
 148               informat TDC1 best32. ;
 149               informat TDC2 best32. ;
 150               informat RSTKGRNT $1. ;
 151               informat OPTION_AWARDS_BLK_VALUE $1. ;
 152               informat OPTION_AWARDS_RPT_VALUE $1. ;
 153               informat LTIP $1. ;
 154               informat ALLOTHTOT $1. ;
 155               informat ALLOTHPD $1. ;
 156               informat SAL_PCT best32. ;
 157               informat TOTAL_CURR_PCT best32. ;
 158               informat TOTAL_SEC_PCT best32. ;
 159               informat TOTAL_ALT1_PCT best32. ;
 160               informat TOTAL_ALT2_PCT best32. ;
 161               informat TDC1_PCT best32. ;
 162               informat TDC2_PCT best32. ;
 163               informat RET_YRS $1. ;
 164               informat COMMENT $1. ;
 165               informat GVKEY best32. ;
 166               informat EXECID best32. ;
 167               informat YEAR best32. ;
 168               informat RSTKVYRS $1. ;
 169               informat BECAMECEO best32. ;
 170               informat JOINED_CO best32. ;
 171               informat REJOIN $1. ;
 172               informat LEFTOFC best32. ;
 173               informat LEFTCO best32. ;
 174               informat RELEFT $1. ;
 175               informat PCEO $3. ;
 176               informat PCFO $3. ;
 177               informat TITLE $215. ;
 178               informat REASON $7. ;
 179               informat EXEC_LNAME $22. ;
 180               informat EXEC_FNAME $12. ;
 181               informat EXEC_MNAME $9. ;
 182               informat GENDER $6. ;
 183               informat NAMEPREFIX $3. ;
 184               informat PAGE best32. ;
 185               informat CUSIP $8. ;
 186               informat EXCHANGE $3. ;
 187               informat ADDRESS $41. ;
 188               informat CITY $15. ;
 189               informat STATE $2. ;
 190               informat ZIP $5. ;
 191               informat TELE $14. ;
 192               informat SICDESC $30. ;
 193               informat NAICSDESC $52. ;
 194               informat INDDESC $44. ;
 195               informat SPCODE $2. ;
 196               informat TICKER $5. ;
 197               informat SUB_TELE best32. ;
 198               informat NAICS best32. ;
 199               informat SPINDEX best32. ;
 200               informat SIC best32. ;
 201               format EXEC_FULLNAME $614. ;
 202               format CFOANN $7. ;
 203               format EXECDIR $2. ;
 204               format OLD_DATAFMT_FLAG $4. ;
 205               format INTERLOCK $3. ;
 206               format REPRICE best12. ;
 207               format EXECRANK $8. ;
 208               format CO_PER_ROL $5. ;
 209               format CONAME $34. ;
 210               format TITLEANN $246. ;
 211               format CEOANN $3. ;
 212               format SALARY best12. ;
 213               format BONUS $12. ;
 214               format STOCK_AWARDS $30. ;
 215               format OPTION_AWARDS $52. ;
 216               format NONEQ_INCENT $37. ;
 217               format PENSION_CHG $9. ;
 218               format OTHCOMP $9. ;
 219               format TOTAL_SEC best12. ;
 220               format TOTAL_CURR best12. ;
 221               format TOTAL_ALT1 best12. ;
 222               format TOTAL_ALT2 best12. ;
 223               format TERM_PYMT best12. ;
 224               format CHG_CTRL_PYMT best12. ;
 225               format SHROWN_TOT best12. ;
 226               format SHROWN_TOT_PCT best12. ;
 227               format SHROWN_EXCL_OPTS best12. ;
 228               format SHROWN_EXCL_OPTS_PCT best12. ;
 229               format OPT_EXER_NUM best12. ;
 230               format OPT_EXER_VAL best12. ;
 231               format SHRS_VEST_NUM best12. ;
 232               format SHRS_VEST_VAL best12. ;
 233               format AGE best12. ;
 234               format OPTION_AWARDS_NUM best12. ;
 235               format OPTION_AWARDS_FV best12. ;
 236               format STOCK_AWARDS_FV best12. ;
 237               format OPT_UNEX_EXER_NUM best12. ;
 238               format OPT_UNEX_UNEXER_NUM best12. ;
 239               format OPT_UNEX_EXER_EST_VAL best12. ;
 240               format OPT_UNEX_UNEXER_EST_VAL best12. ;
 241               format STOCK_UNVEST_NUM best12. ;
 242               format STOCK_UNVEST_VAL best12. ;
 243               format EIP_UNEARN_NUM best12. ;
 244               format EIP_UNEARN_VAL best12. ;
 245               format PENSION_VALUE_TOT best12. ;
 246               format PENSION_PYMTS_TOT best12. ;
 247               format DEFER_CONTRIB_EXEC_TOT best12. ;
 248               format DEFER_CONTRIB_CO_TOT best12. ;
 249               format DEFER_EARNINGS_TOT best12. ;
 250               format DEFER_WITHDR_TOT best12. ;
 251               format DEFER_BALANCE_TOT best12. ;
 252               format DEFER_RPT_AS_COMP_TOT best12. ;
 253               format EXECRANKANN best12. ;
 254               format OTHANN $1. ;
 255               format TDC1 best12. ;
 256               format TDC2 best12. ;
 257               format RSTKGRNT $1. ;
 258               format OPTION_AWARDS_BLK_VALUE $1. ;
 259               format OPTION_AWARDS_RPT_VALUE $1. ;
 260               format LTIP $1. ;
 261               format ALLOTHTOT $1. ;
 262               format ALLOTHPD $1. ;
 263               format SAL_PCT best12. ;
 264               format TOTAL_CURR_PCT best12. ;
 265               format TOTAL_SEC_PCT best12. ;
 266               format TOTAL_ALT1_PCT best12. ;
 267               format TOTAL_ALT2_PCT best12. ;
 268               format TDC1_PCT best12. ;
 269               format TDC2_PCT best12. ;
 270               format RET_YRS $1. ;
 271               format COMMENT $1. ;
 272               format GVKEY best12. ;
 273               format EXECID best12. ;
 274               format YEAR best12. ;
 275               format RSTKVYRS $1. ;
 276               format BECAMECEO best12. ;
 277               format JOINED_CO best12. ;
 278               format REJOIN $1. ;
 279               format LEFTOFC best12. ;
 280               format LEFTCO best12. ;
 281               format RELEFT $1. ;
 282               format PCEO $3. ;
 283               format PCFO $3. ;
 284               format TITLE $215. ;
 285               format REASON $7. ;
 286               format EXEC_LNAME $22. ;
 287               format EXEC_FNAME $12. ;
 288               format EXEC_MNAME $9. ;
 289               format GENDER $6. ;
 290               format NAMEPREFIX $3. ;
 291               format PAGE best12. ;
 292               format CUSIP $8. ;
 293               format EXCHANGE $3. ;
 294               format ADDRESS $41. ;
 295               format CITY $15. ;
 296               format STATE $2. ;
 297               format ZIP $5. ;
 298               format TELE $14. ;
 299               format SICDESC $30. ;
 300               format NAICSDESC $52. ;
 301               format INDDESC $44. ;
 302               format SPCODE $2. ;
 303               format TICKER $5. ;
 304               format SUB_TELE best12. ;
 305               format NAICS best12. ;
 306               format SPINDEX best12. ;
 307               format SIC best12. ;
 308            input
 309                        EXEC_FULLNAME  $
 310                        CFOANN  $
 311                        EXECDIR  $
 312                        OLD_DATAFMT_FLAG  $
 313                        INTERLOCK  $
 314                        REPRICE
 315                        EXECRANK  $
 316                        CO_PER_ROL  $
 317                        CONAME  $
 318                        TITLEANN  $
 319                        CEOANN  $
 320                        SALARY
 321                        BONUS  $
 322                        STOCK_AWARDS  $
 323                        OPTION_AWARDS  $
 324                        NONEQ_INCENT  $
 325                        PENSION_CHG  $
 326                        OTHCOMP  $
 327                        TOTAL_SEC
 328                        TOTAL_CURR
 329                        TOTAL_ALT1
 330                        TOTAL_ALT2
 331                        TERM_PYMT
 332                        CHG_CTRL_PYMT
 333                        SHROWN_TOT
 334                        SHROWN_TOT_PCT
 335                        SHROWN_EXCL_OPTS
 336                        SHROWN_EXCL_OPTS_PCT
 337                        OPT_EXER_NUM
 338                        OPT_EXER_VAL
 339                        SHRS_VEST_NUM
 340                        SHRS_VEST_VAL
 341                        AGE
 342                        OPTION_AWARDS_NUM
 343                        OPTION_AWARDS_FV
 344                        STOCK_AWARDS_FV
 345                        OPT_UNEX_EXER_NUM
 346                        OPT_UNEX_UNEXER_NUM
 347                        OPT_UNEX_EXER_EST_VAL
 348                        OPT_UNEX_UNEXER_EST_VAL
 349                        STOCK_UNVEST_NUM
 350                        STOCK_UNVEST_VAL
 351                        EIP_UNEARN_NUM
 352                        EIP_UNEARN_VAL
 353                        PENSION_VALUE_TOT
 354                        PENSION_PYMTS_TOT
 355                        DEFER_CONTRIB_EXEC_TOT
 356                        DEFER_CONTRIB_CO_TOT
 357                        DEFER_EARNINGS_TOT
 358                        DEFER_WITHDR_TOT
 359                        DEFER_BALANCE_TOT
 360                        DEFER_RPT_AS_COMP_TOT
 361                        EXECRANKANN
 362                        OTHANN  $
 363                        TDC1
 364                        TDC2
 365                        RSTKGRNT  $
 366                        OPTION_AWARDS_BLK_VALUE  $
 367                        OPTION_AWARDS_RPT_VALUE  $
 368                        LTIP  $
 369                        ALLOTHTOT  $
 370                        ALLOTHPD  $
 371                        SAL_PCT
 372                        TOTAL_CURR_PCT
 373                        TOTAL_SEC_PCT
 374                        TOTAL_ALT1_PCT
 375                        TOTAL_ALT2_PCT
 376                        TDC1_PCT
 377                        TDC2_PCT
 378                        RET_YRS  $
 379                        COMMENT  $
 380                        GVKEY
 381                        EXECID
 382                        YEAR
 383                        RSTKVYRS  $
 384                        BECAMECEO
 385                        JOINED_CO
 386                        REJOIN  $
 387                        LEFTOFC
 388                        LEFTCO
 389                        RELEFT  $
 390                        PCEO  $
 391                        PCFO  $
 392                        TITLE  $
 393                        REASON  $
 394                        EXEC_LNAME  $
 395                        EXEC_FNAME  $
 396                        EXEC_MNAME  $
 397                        GENDER  $
 398                        NAMEPREFIX  $
 399                        PAGE
 400                        CUSIP  $
 401                        EXCHANGE  $
 402                        ADDRESS  $
 403                        CITY  $
 404                        STATE  $
 405                        ZIP  $
 406                        TELE  $
 407                        SICDESC  $
 408                        NAICSDESC  $
 409                        INDDESC  $
 410                        SPCODE  $
 411                        TICKER  $
 412                        SUB_TELE
 413                        NAICS
 414                        SPINDEX
 415                        SIC
 416            ;
 417            if _ERROR_ then call symputx('_EFIERR_',1);  /* set ERROR detection macro variable */
 418            run;
 
 NOTE: The infile '~/425/425_Final_Paper/CompuStat_Execucomp.csv' is:
       Filename=/home/sastuck/425/425_Final_Paper/CompuStat_Execucomp.csv,
       Owner Name=sastuck,Group Name=oda,
       Access Permission=-rw-r--r--,
       Last Modified=03Mar2018:03:40:25,
       File Size (bytes)=50937550
 
 NOTE: 74300 records were read from the infile '~/425/425_Final_Paper/CompuStat_Execucomp.csv'.
       The minimum record length was 299.
       The maximum record length was 1177.
 NOTE: The data set PRACTICE.COMPUSTAT_EXECUCOMP has 74300 observations and 107 variables.
 NOTE: DATA statement used (Total process time):
       real time           1.10 seconds
       user cpu time       0.58 seconds
       system cpu time     0.12 seconds
       memory              14997.50k
       OS Memory           47404.00k
       Timestamp           05/04/2018 08:50:41 PM
       Step Count                        160  Switch Count  1
       Page Faults                       0
       Page Reclaims                     278
       Page Swaps                        0
       Voluntary Context Switches        4462
       Involuntary Context Switches      8
       Block Input Operations            0
       Block Output Operations           302088
       
 
 74300 rows created in PRACTICE.COMPUSTAT_EXECUCOMP from ~/425/425_Final_Paper/CompuStat_Execucomp.csv.
   
   
   
 NOTE: PRACTICE.COMPUSTAT_EXECUCOMP data set was successfully created.
 NOTE: The data set PRACTICE.COMPUSTAT_EXECUCOMP has 74300 observations and 107 variables.
 NOTE: PROCEDURE IMPORT used (Total process time):
       real time           5.90 seconds
       user cpu time       5.35 seconds
       system cpu time     0.15 seconds
       memory              14997.50k
       OS Memory           47920.00k
       Timestamp           05/04/2018 08:50:41 PM
       Step Count                        160  Switch Count  9
       Page Faults                       0
       Page Reclaims                     6132
       Page Swaps                        0
       Voluntary Context Switches        4545
       Involuntary Context Switches      12
       Block Input Operations            288
       Block Output Operations           302152
       
 
 
 NOTE: PROCEDURE CONTENTS used (Total process time):
       real time           0.17 seconds
       user cpu time       0.17 seconds
       system cpu time     0.00 seconds
       memory              5837.21k
       OS Memory           38840.00k
       Timestamp           05/04/2018 08:50:41 PM
       Step Count                        161  Switch Count  0
       Page Faults                       0
       Page Reclaims                     292
       Page Swaps                        0
       Voluntary Context Switches        2
       Involuntary Context Switches      1
       Block Input Operations            0
       Block Output Operations           88
       
 
 
 NOTE: There were 74300 observations read from the data set PRACTICE.COMPUSTAT_EXECUCOMP.
 NOTE: The data set PRACTICE.COMPUSTAT_EXECUCOMP has 74300 observations and 108 variables.
 NOTE: DATA statement used (Total process time):
       real time           1.05 seconds
       user cpu time       0.09 seconds
       system cpu time     0.18 seconds
       memory              3631.84k
       OS Memory           40376.00k
       Timestamp           05/04/2018 08:50:42 PM
       Step Count                        162  Switch Count  24
       Page Faults                       0
       Page Reclaims                     498
       Page Swaps                        0
       Voluntary Context Switches        6182
       Involuntary Context Switches      9
       Block Input Operations            301824
       Block Output Operations           302088
       
 
 
 NOTE: There were 74300 observations read from the data set PRACTICE.COMPUSTAT_EXECUCOMP.
 NOTE: The data set WORK.AVG has 1 observations and 3 variables.
 NOTE: PROCEDURE MEANS used (Total process time):
       real time           0.27 seconds
       user cpu time       0.07 seconds
       system cpu time     0.06 seconds
       memory              8524.65k
       OS Memory           44764.00k
       Timestamp           05/04/2018 08:50:43 PM
       Step Count                        163  Switch Count  2
       Page Faults                       0
       Page Reclaims                     1864
       Page Swaps                        0
       Voluntary Context Switches        2706
       Involuntary Context Switches      0
       Block Input Operations            302112
       Block Output Operations           272
       
 
 ERROR: Variable BONUS in list does not match type prescribed for this list.
 
 NOTE: The SAS System stopped processing this step because of errors.
 WARNING: The data set WORK.AVG may be incomplete.  When this step was stopped there were 0 observations and 0 variables.
 WARNING: Data set WORK.AVG was not replaced because this step was stopped.
 NOTE: PROCEDURE MEANS used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              1718.81k
       OS Memory           38324.00k
       Timestamp           05/04/2018 08:50:43 PM
       Step Count                        164  Switch Count  0
       Page Faults                       0
       Page Reclaims                     241
       Page Swaps                        0
       Voluntary Context Switches        4
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           8
       
 
 
 ERROR: Variable OPTION_AWARDS in list does not match type prescribed for this list.
 
 NOTE: The SAS System stopped processing this step because of errors.
 WARNING: The data set WORK.AVG may be incomplete.  When this step was stopped there were 0 observations and 0 variables.
 WARNING: Data set WORK.AVG was not replaced because this step was stopped.
 NOTE: PROCEDURE MEANS used (Total process time):
       real time           0.00 seconds
       user cpu time       0.01 seconds
       system cpu time     0.00 seconds
       memory              1718.81k
       OS Memory           38324.00k
       Timestamp           05/04/2018 08:50:43 PM
       Step Count                        165  Switch Count  0
       Page Faults                       0
       Page Reclaims                     241
       Page Swaps                        0
       Voluntary Context Switches        1
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           8
       
 
 
 
 NOTE: There were 74300 observations read from the data set PRACTICE.COMPUSTAT_EXECUCOMP.
 NOTE: The data set WORK.AVG has 1 observations and 3 variables.
 NOTE: PROCEDURE MEANS used (Total process time):
       real time           0.05 seconds
       user cpu time       0.02 seconds
       system cpu time     0.04 seconds
       memory              8524.81k
       OS Memory           44764.00k
       Timestamp           05/04/2018 08:50:43 PM
       Step Count                        166  Switch Count  2
       Page Faults                       0
       Page Reclaims                     1864
       Page Swaps                        0
       Voluntary Context Switches        36
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           264
       
 
 
 NOTE: There were 74300 observations read from the data set PRACTICE.COMPUSTAT_EXECUCOMP.
 NOTE: PROCEDURE MEANS used (Total process time):
       real time           0.05 seconds
       user cpu time       0.03 seconds
       system cpu time     0.03 seconds
       memory              10255.31k
       OS Memory           45256.00k
       Timestamp           05/04/2018 08:50:43 PM
       Step Count                        167  Switch Count  7
       Page Faults                       0
       Page Reclaims                     1920
       Page Swaps                        0
       Voluntary Context Switches        38
       Involuntary Context Switches      1
       Block Input Operations            0
       Block Output Operations           0
       
 
 
 NOTE: There were 13678 observations read from the data set PRACTICE.COMPUSTAT_EXECUCOMP2.
 NOTE: The data set PRACTICE.COMPUSTAT_EXECUCOMP has 13678 observations and 107 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.12 seconds
       user cpu time       0.01 seconds
       system cpu time     0.04 seconds
       memory              3630.43k
       OS Memory           39864.00k
       Timestamp           05/04/2018 08:50:43 PM
       Step Count                        168  Switch Count  5
       Page Faults                       0
       Page Reclaims                     533
       Page Swaps                        0
       Voluntary Context Switches        936
       Involuntary Context Switches      1
       Block Input Operations            0
       Block Output Operations           55816
       
 
 
 NOTE: PROCEDURE TTEST used (Total process time):
       real time           3.56 seconds
       user cpu time       2.29 seconds
       system cpu time     0.21 seconds
       memory              45803.15k
       OS Memory           79628.00k
       Timestamp           05/04/2018 08:50:47 PM
       Step Count                        169  Switch Count  113
       Page Faults                       0
       Page Reclaims                     69985
       Page Swaps                        0
       Voluntary Context Switches        4538
       Involuntary Context Switches      16
       Block Input Operations            55840
       Block Output Operations           75880
       
 
 WARNING: Apparent invocation of macro DATA2DATASTEP not resolved.
 467       +%data2datastep(CompuStat_Execucomp,practice,,5);
            _
            180
 
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 472        
 473        OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 486        &lt;/PRE&gt;</description>
    <pubDate>Fri, 04 May 2018 20:56:58 GMT</pubDate>
    <dc:creator>sastuck</dc:creator>
    <dc:date>2018-05-04T20:56:58Z</dc:date>
    <item>
      <title>Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458481#M5389</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my CEO compensation data set I have a variable "gender" which indicates if a CEO is a man or a woman. I would like to find the means between these two groups. How can I untangle these values so that I can observe the two different averages?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what the data look like:&lt;/P&gt;&lt;PRE&gt;	

56	508.007	0	883.694	175.511	FEMALE
57	530.478	0	0	0	MALE
58	522	0	0	0	MALE
59	618.135	0	0	0	MALE
60	540.385	0	0	0	FEMALE
61	569.8	0	0	0	MALE
62	541.087	0	4803.789	0	MALE
63	591.911	0	4199.761	0	MALE
64	551.193	0	4185.64	0	FEMALE
65	581.196	0	4803.789	MALE
66	33.622	0	6606.551	MALE
67	35.724	0	6606.551	MALE
68	42.308	0	15415.27	MALE
69	42.868	0	11010.911	MALE
70	37.826	0	7707.623	MALE
71	563.86	0	2500	0	MALE
72	566.067	0	2500	0	MALE
73	687.884	0	7000	0	MALE
74	642.512	0	4500	0	MALE
75	591.254	0	3000	0	MALE
76	584.178	0	2920	0	MALE
77	584.178	0	2920	0	MALE
78	231.538	0	10330	0	MALE
79	660.375	0	5250	0	MALE
80	609.577	0	3500	0	MALE
81	600.936	0	2575	0	MALE&lt;/PRE&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 21:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458481#M5389</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-04-29T21:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458502#M5391</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;I basically just want to know how to find the average of both genders separately even though the data is in one variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 01:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458502#M5391</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-04-30T01:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458505#M5392</link>
      <description>&lt;P&gt;You put your grouping&amp;nbsp;variable in your CLASS statement in PROC MEANS/UNIVARIATE/SUMMARY.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the example here - you can run it yourself to see how it works:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/statgeek/SAS-Tutorials/blob/master/proc_means_basic.sas" target="_blank"&gt;https://github.com/statgeek/SAS-Tutorials/blob/master/proc_means_basic.sas&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 01:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458505#M5392</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-30T01:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458513#M5395</link>
      <description>&lt;P&gt;What is going on in the var line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here's an example from the page you linked:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Create summary data;
proc means data=have noprint;
	by id;
	var feature1-feature3;
	output out=want median= var= mean= /autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;feature1-feature3 ? What is this?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 02:37:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458513#M5395</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-04-30T02:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458519#M5397</link>
      <description>&lt;P&gt;You have not mentioned the names of your data variables.&lt;/P&gt;
&lt;P&gt;Assuming names :&lt;/P&gt;
&lt;PRE&gt;ID    VAR1      VAR2   VAR3     VAR4     GENDER
56	508.007	0	883.694	175.511	 FEMALE
57	530.478	0	  0	  0	 MALE
58	522	0	  0	  0	 MALE&lt;/PRE&gt;
&lt;P&gt;Your code should be like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=have noprint;
   class gender;
    var var1 var3 ;   /* or var1 - var4 &amp;lt;&amp;lt; for all 4 numeric variables */
    output out=want &amp;lt;statistics&amp;gt; / &amp;lt;options&amp;gt; ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Pay attention:&amp;nbsp; VAR!-VAR4 is &lt;U&gt;equal&lt;/U&gt; to&amp;nbsp; VAR1 VAR2 VAR3 VAR4.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 05:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458519#M5397</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-04-30T05:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458674#M5405</link>
      <description>&lt;P&gt;The data set before - the sample data had the variables listed as Features1, features2, features3.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A short cut way to reference all three at once is features1-features3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/177874"&gt;@sastuck&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;What is going on in the var line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here's an example from the page you linked:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Create summary data;
proc means data=have noprint;
	by id;
	var feature1-feature3;
	output out=want median= var= mean= /autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;feature1-feature3 ? What is this?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 14:50:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458674#M5405</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-30T14:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458705#M5406</link>
      <description>&lt;P&gt;&lt;FONT color="#ff0000" size="4"&gt;&lt;STRONG&gt;Warning Will Robinson:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" size="3"&gt;Use of zero for "missing" data will artificially lower your mean salary analysis.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" size="3"&gt;Since I really doubt that any of those CEOs work for zero salary you probably should either 1)take a pass through a data step to set zero valued salary fields to missing or 2) make sure that you subset the data to records with salary greater than zero in Proc Means/Summary or any analysis.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" size="3"&gt;If you have multiple salary fields with some 0 and others not then the first approach is likely the better one.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" size="3"&gt;A second consideration might be time if the data has the salary for multiple years for a single individual. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 15:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458705#M5406</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-30T15:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458707#M5407</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;Someone's been watching Lost in Space....:D&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 15:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458707#M5407</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-30T15:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458728#M5408</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;Someone's been watching Lost in Space....:D&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I used to have to stay up late to watch it when it was first broadcast ...&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 16:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458728#M5408</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-30T16:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458806#M5415</link>
      <description>&lt;DIV class="proc_title_group"&gt;&lt;P class="c proctitle"&gt;The MEANS Procedure&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;Analysis Variable : SALARYN N Miss&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;74300&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like I don't have missing or 0 observations for salary. There are plenty for the other forms of compensation though, but perhaps these should be reflected in the mean?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:20:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458806#M5415</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-04-30T19:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458810#M5417</link>
      <description>&lt;P&gt;Your sample data shows 0. Are 0, missing, or truly zero. If it's missing, then using zero will deflate your numbers and it will not show up on the PROC MEANS output because 0 is not missing according to SAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:29:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458810#M5417</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-30T19:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458813#M5419</link>
      <description>&lt;P&gt;yes, those are from the bonus, stock options, etc variables (sorry I didnt include headers). I couldnt find any helpful documentation for this . . . but since there is a salary reported and a (true) zero bonus is possible, I might just assume that they dont represent missing values. Regardless, I still am unsure of how to find the mean for men and women separately. Thanks for the heads up though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:35:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458813#M5419</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-04-30T19:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458815#M5421</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/177874"&gt;@sastuck&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;DIV class="proc_title_group"&gt;
&lt;P class="c proctitle"&gt;The MEANS Procedure&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;Analysis Variable : SALARYN N Miss&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;74300&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like I don't have missing or 0 observations for salary. There are plenty for the other forms of compensation though, but perhaps these should be reflected in the mean?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If this relates to my comment about values of 0 included in your means this does not refute it. My concern is that you have &lt;STRONG&gt;values&lt;/STRONG&gt; of zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consider 5 ceos with salaries of 10000 10000 10000 0 0. Do you want 10000 or 6000 as the "mean"? You have not shown us any way to determine the names of your variables for that given "example" data but 3 of your 4 likely numeric variables have multiple 0 values. (Two of the data columns basically only having 0 or missing). The concern is interpretation if 0 is included in the salary. But as I say again, we do not know which column of your data represents salary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data is best presented in the form of a data step so there is not problem identifying which variables are numeric or character, we have the names of the variables and a data set we can test code against to verify that the results are correct for an example that is small enough to calculate by hand. Such as:&lt;/P&gt;
&lt;PRE&gt;data have;
   input id salary sex $;
datalines;
1  50000 male
2  25000 male
3  44444 female
4  0     female
;
run;

proc means data=have;
   class sex;
   var salary;
run;&lt;/PRE&gt;
&lt;P&gt;So in the above, since there are only two females would desire the "mean" salary to be 44444 or 22222? If 22222 seems wrong and should be 44444 then you need to exclude the values of 0 from the mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458815#M5421</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-30T19:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460035#M5435</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regardless of the missing 0's, could you show me how to show the difference in means given the way my data look? I will consider the 0's later, right now I would just like to see how I can show the difference in means between men and women. Since they are in the same column its not as simple as the proc means I am used to. If you can help, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 13:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460035#M5435</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-05-04T13:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460063#M5436</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/177874"&gt;@sastuck&lt;/a&gt;&amp;nbsp;did you run the code included in&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;post from MONDAY? It is exactly what you asked for.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/177874"&gt;@sastuck&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regardless of the missing 0's, could you show me how to show the difference in means given the way my data look? I will consider the 0's later, right now I would just like to see how I can show the difference in means between men and women. Since they are in the same column its not as simple as the proc means I am used to. If you can help, thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 14:52:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460063#M5436</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-04T14:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460081#M5437</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;, I don't know how I overlooked that. The code is running now, but is taking a long time (?)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;mentioned that its data is best presented as a datastep. Could you show me how this is done?&amp;nbsp; For future reference.&amp;nbsp; Thanks for the headsup by the way!&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 15:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460081#M5437</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-05-04T15:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460082#M5438</link>
      <description>&lt;P&gt;This is a generic post I've written a while ago that illustrates how to convert your data to a data step to post in the forums:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/177874"&gt;@sastuck&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;, I don't know how I overlooked that. The code is running now, but is taking a long time (?)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;mentioned that its data is best presented as a datastep. Could you show me how this is done?&amp;nbsp; For future reference.&amp;nbsp; Thanks for the headsup by the way!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 15:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460082#M5438</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-04T15:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460091#M5439</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%data2datastep(CompuStat_Execucomp,practice,,5);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 WARNING: Apparent invocation of macro DATA2DATASTEP not resolved.
 70         
 71         %data2datastep(CompuStat_Execucomp,practice,,5);
            _
            180
 
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 72         
 73         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 85&lt;/PRE&gt;&lt;P&gt;I'm close, but must be missing something. Any tips?&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 15:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460091#M5439</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-05-04T15:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460097#M5441</link>
      <description>&lt;P&gt;You didn’t run the macro first. Make sure to follow the instructions step by step, print it off and check off each line if you have to, since you seem to consistently missing steps that have been identified.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 16:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460097#M5441</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-04T16:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460123#M5442</link>
      <description>&lt;P&gt;I deleted the zero's this time before doing the means, but the mins for both genders are still basically zero. How is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*remove zeros;
data practice.CompuStat_Execucomp;
	set practice.CompuStat_Execucomp2; 
	if salary=. then delete;
run;

title "Table 6. Difference in Means";
title2 "Male and Female CEOs";
proc ttest data=practice.CompuStat_Execucomp;
class gender;
   var salary;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;GENDER	Method	N	Mean	Std Dev	Std Err	Minimum	Maximum
FEMALE	 	        528  873.5	327.3	14.2444	0.00100	 2000.0
MALE	 	      1315 824.4	429.1	3.7423	0	 8100.0
Diff (1-2)	Pooled	 	49.0313	425.7	18.8933	 	 
Diff (1-2)	Satterthwaite	49.0313	 	         14.7278&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 May 2018 18:01:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460123#M5442</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-05-04T18:01:02Z</dc:date>
    </item>
  </channel>
</rss>

