Using the data set EXPER from problem 18.9, create a new variable (lD2) from ID. Make this new variable 6 bytes in length and place an asterisk in the sixth byte if the fourth byte of TD has a value...


Using the data set EXPER from problem 18.9, create a new variable (lD2) from ID. Make this new variable 6 bytes in length and place an asterisk in the sixth byte if the fourth byte of TD has a value of 5 or more. To solve this problem, create a numeric variable based on the fourth byte of [D, and check if it is greater than or equal to 5. Do not check this byte as a character value against the numerals 5-9.


Problem 18.9


The data set (EX PER) created by running the following program contains the variables ID, GROUP, and DOSE. Create two new variables as follows: One is a 2-byte character variable created from the second and third bytes of ID. The other is a variable created by concatenating GROUP and DOSE. T11isvariable should be 6 bytes long with a '-' between the GROUP and DOSE values, and it should not contain any embedded blanks. Call the two variables SUB_ID and G RP_DOSE, respectively:



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here