create a temporary data set from the permanent icdb background data set keep only th 5192009
Create a temporary data set from the permanent ICDB background data set. Keep only the following variables: subj, r_id, country, race, state and mar_st. Then, create temporary formats for each of the following variables, as defined as follows: subj: define a picture format so that the first digit, which defines the clinical center, is separated from the rest of the number by a dash. Define a pound sign (“#”) as a prefix, and define the picture so that leading zeroes would not be printed. (Make sure you use enough digits in your picture to provide SAS enough room to display the pound sign!) state: define a value format based on the codebook stored in the SAS data set state_cd. country: define a value format based on the codes and responses on the background data form. race: define a value format that divides race into White, Black and Other marital status: define a value format based on the codes and responses on the background data form. r_id: define a picture format so that leading zeroes will be printed. To illustrate the subject picture, use the OBS=10 option to print only the first 10 subjects of the data set. For the remaining five variables, create a one-dimensional table of frequency counts using the FREQ procedure. Note that, in the FREQ procedure, you can either place more than one variable in a TABLE statement or you can have multiple TABLE statements each containing one variable. Finally, request that SAS display a list of all of the formats in your catalog.