Libname PANC '[]'; Option Linesize=120 Nodate Nonumber Mstored Sasmstore=PANC Center; Data PANC; INPUT ID CASCON AGE SEX SMOKSTAT CIGARET @@; ALLSUBJ=(CASCON=1 or CASCON=2); CURRENT=(SMOKSTAT=3); FEMALES=(SEX=2); AGE60_64=(AGE>=60 and AGE <=64); AGE65_69=(AGE>=65 and AGE <=69); AGE70_ =(AGE>=70); LABEL ID = 'Identification number' CASCON = 'Case-Control status' AGE = 'Age' SEX = 'Sex' SMOKSTAT = 'Smoking status' CIGARET = 'Cigarette consumption' ALLSUBJ = 'All subjects' CURRENT = 'Current smokers' FEMALES = 'Females' AGE60_64 = 'Age 0-64' AGE65_69 = 'Age 65-69' AGE70_ = 'Age 70+'; CARDS; 0001 1 70 1 1 . 0003 1 56 1 3 5 0008 1 63 2 2 . 0010 1 67 1 3 12 0012 1 57 1 3 15 0022 1 72 1 3 10 0025 1 66 2 2 . 0043 1 66 1 3 5 0044 1 67 2 3 8 0047 1 71 2 1 . 0048 1 21 1 3 65 0067 1 68 1 2 . 0087 1 77 1 2 5 0090 1 64 1 3 11 0091 1 69 1 3 8 0101 1 65 1 1 . 0103 1 66 2 1 . 0110 1 57 2 2 . 0112 1 71 1 3 12 0123 1 64 1 2 . 0124 1 67 1 3 18 0125 1 55 2 3 6 0126 1 65 1 3 20 0127 1 57 1 2 . 0132 1 71 2 2 . 0136 1 65 2 3 8 0137 1 67 1 1 . 0140 1 68 1 3 20 0143 1 60 1 2 . 0145 1 57 2 3 10 0146 1 61 1 1 . 0148 1 63 1 3 15 0153 1 56 1 2 . 0156 1 66 2 1 . 0161 1 58 2 1 . 0162 1 69 1 1 . 0164 1 59 2 3 8 0166 1 64 1 2 . 0167 1 70 1 3 12 0173 1 67 1 3 5 1002 2 66 1 2 . 1003 2 72 1 3 5 1005 2 65 1 3 8 1010 2 55 2 1 . 1011 2 56 2 3 12 1012 2 63 2 1 . 1018 2 68 1 3 5 1020 2 57 2 2 . 1021 2 67 1 1 . 1022 2 64 2 2 . 1023 2 66 1 2 . 1033 2 58 2 3 10 1034 2 68 2 1 . 1035 2 60 2 3 8 1038 2 71 1 3 5 1042 2 69 1 1 . 1044 2 59 1 1 . 1056 2 50 1 3 10 1067 2 70 1 2 . 1068 2 54 2 1 . 1069 2 60 1 5 30 1070 2 63 1 2 . 1073 2 69 1 3 18 1074 2 72 2 1 . 1075 2 58 1 3 12 1077 2 64 2 1 . 1078 2 52 2 2 . 1080 2 68 1 3 5 1082 2 59 1 3 10 1083 2 50 1 1 . 1085 2 62 1 3 5 1086 2 53 2 3 12 1087 2 65 2 2 . 1088 2 54 2 2 . 1089 2 55 1 1 . 1091 2 61 1 3 20 1093 2 66 1 2 . 1095 2 57 1 1 . 1098 2 70 2 2 . 1109 2 67 2 1 . 1110 2 60 1 1 . ; %let DSET = PANC; %Let STUDY = Pancreatic cancer study; %let STAT = CASCON; %Let IDNUM = ID; %Let BASELIN = FEMALES AGE60_64 AGE65_69 AGE70_; %Let SUBTITL = All subjects; %Let SUBSET = ALLSUBJ; %Cate(QVAR=SMOKSTAT, TITL=Smoking status, NCAT=3, LBL1=Never smoked, LBL2=Ex smoker, LBL3=Current smoker) %Let SUBTITL = Current smokers only; %Let SUBSET = CURRENT; %Cont(CVAR=CIGARET, TITL=# cigarettes/day) Endsas;