/*-------------------------------------------- example 2 format definitions Gillian raab August 04 Run like this it will store formats to use only for this session Experienced SAS users can save to a format library ------------------------------------------------*/ /*------------------------------------------- Run this programme to get formats (value labels) for the categories in the sas data set ex2 for exemplar 2 ---------------------------------------------*/ proc format; value council 100= "Aberdeen City" 110="Aberdeenshire" 120="Angus " 130="Argyll & Bute" 150="Clackmannanshire" 170="Dumfries & Galloway" 180="Dundee City" 190="East Ayrshire" 200="East Dunbartonshire" 210="East Lothian" 220="East Renfrewshire" 230="Edinburgh, City of" 235="Eilean Siar" 240="Falkirk" 250="Fife" 260="Glasgow City" 270="Highland" 280="Inverclyde" 290="Midlothian" 300="Moray" 310="North Ayrshire" 320="North Lanarkshire" 330="Orkney Islands" 340="Perth & Kinross" 350="Renfrewshire" 355="Scottish Borders" 360="Shetland Islands" 370="South Ayrshire" 380="South Lanarkshire" 390="Stirling" 395="West Dunbartonshire" 400="West Lothian" ; value sex 1="male" 2="female"; value hours 1="Up to 1 hour a week" 2="Over 1 hour, up to 5 hours " 3="Over 5 hours up to 10 hours" 4="Over 10 hours up to 20 hours " 5="Over 20 hours"; value employ 1="Self employed " 2="Employed full time " 3="Employed part time " 4="Looking after the home or family " 5="Permanently retired from work " 6="Unemployed and seeking work " 7="At school " 8="In further/higher education " 9="Gov't work or training scheme " 10="Permanently sick or disabled " 11="Unable to work because short-term ill " 12="Pre school" 13="Other"; value rural 1="Urban settlements of over 125,000 pop" 2="Other urban " ‚ 3="Small access towns,3-10k" 4="Small remote towns, pop 3-10k" 5="Accessible rural, pop<3k, drive<30" 6="‚Remote rural, pop<3k, drive>30"; run;