Run the following program to create a SAS data set NUM_CHAR. Using this data set, create...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Run the following program to create a SAS data set NUM_CHAR. Using this data set, create a new SAS data set (CORRECT) as follows: X, Y, and Z are numeric variables (yes, you have to use the same variable names. HINT: Swap and DROP); DATE is a real SAS date (i.e., the number of days from January 1, 1960, format it with DATE9.); NUMERAL is a character variable (make the length 8); CHAR_DATE is a character variable with the value of DOB (but as a character string in the MMDDYY10. format). DATA NUM_CHAR; INPUT X $ Y $ Z $ DATE: $10. NUMERAL DOB: DATE9.; FORMAT DOB MMDDYY10.; DATALINES; 10 20 30 10/21/1946 123 09SEP2004 1 2 3 11/11/2004 999 01JAN1960 ; Run the following program to create a SAS data set NUM_CHAR. Using this data set, create a new SAS data set (CORRECT) as follows: X, Y, and Z are numeric variables (yes, you have to use the same variable names. HINT: Swap and DROP); DATE is a real SAS date (i.e., the number of days from January 1, 1960, format it with DATE9.); NUMERAL is a character variable (make the length 8); CHAR_DATE is a character variable with the value of DOB (but as a character string in the MMDDYY10. format). DATA NUM_CHAR; INPUT X $ Y $ Z $ DATE: $10. NUMERAL DOB: DATE9.; FORMAT DOB MMDDYY10.; DATALINES; 10 20 30 10/21/1946 123 09SEP2004 1 2 3 11/11/2004 999 01JAN1960 ;
Expert Answer:
Answer rating: 100% (QA)
Heres the SAS code that you can run to create the data set CORRECT based on the NUMCHAR data ... View the full answer
Related Book For
Data Analysis and Decision Making
ISBN: 978-0538476126
4th edition
Authors: Christian Albright, Wayne Winston, Christopher Zappe
Posted Date:
Students also viewed these programming questions
-
SAS (pronounced "sass"), which is short for Statistical Analysis System, began when it set out to create statistical software to help agricultural researchers who were studying the effects of soil,...
-
As the leading AI and advanced analytics platform, SAS continues to innovate relentlessly. Weve aligned our company behind one common goal: to help customers realize the full potential of their AI...
-
Placer Industries acquired all of the voting stock of SAS Shoes several years ago. Placer and SAS have made several inter-company transfers of depreciable assets over the years. Details are below: -...
-
Wollongong Group Ltd, of New South Wales, Australia, acquired its factory building about 10 years ago. For several years the company has rented out a small annex attached to the rear of the building....
-
Assume that computers can recognize voices easily and detect their users exact meaning when talking. Will the necessity for written language be reduced to zero? Why or why not?
-
Raise your hand and hold it flat. Think of the space between your index finger and your middle finger as one slit, and think of the space between middle finger and ring finger as a second slit. (a)...
-
Plaintiff contracted to install a boiler for defendant. After plaintiff had installed and tested the boiler, but before final payment to plaintiff had been made, defendant took custody of the boiler...
-
Presented below is the trial balance of Vivaldi Corporation at December 31, 2012. InstructionsPrepare a balance sheet at December 31, 2012, for Vivaldi Corporation. Ignore incometaxes. Credits Debits...
-
1. An object of mass of 4 kg is resting at a height of 2 m and then falls to the ground. a. Model the energy of the object-Earth system with Energy Bar Charts when at the initial height and ground...
-
The Scampini Supplies Company recently purchased a new delivery truck. The new truck cost $22,500, and it is expected to generate net after-tax operating cash flows, including depreciation, of $6,250...
-
[10] When executed, the program performs the following: a) Count # of ones in WRD b) Count # of zeros in WRD c) Multiplying WRD by 2 d) Dividing WRD by 2
-
2. Assume that a file has B pages each with R records, and that the average time for reading or writing a page is D. Consider a deletion operation specified using an equality condition. For each of...
-
Discuss the role of device drivers in operating systems and the challenges involved in ensuring compatibility and stability across diverse hardware configurations.
-
CASE STUDY: Argentina financial system: the case of banco de Galicia could u go thru the following case study of in order to answer a few questions below: Q1) Is the hypearound Equardo Escasay's idea...
-
On 1 January CY, Slinky decided to refurbish his business. He took out a loan to cover the costs of the refurbishment and paid loan application costs and stamp duty totaling $600 on a loan taken out...
-
Could you elaborate on the significance of device drivers in operating systems and the complexities associated with ensuring compatibility and stability across a wide array of hardware configurations?
-
Given the following data, determine: 1. the planned flying height above the datum. 2. total number of photos required (for North-South runs) 3. shutter speed and exposure time 4. The distances...
-
You are standing at x = 9.0 km and your assistant is standing at x = 3.0 km. Lightning bolt 1 strikes at x = 0 km and lightning bolt 2 strikes at x = 12.0 km. You see the flash from bolt 2 at t = 10...
-
A manufacturing companys quality control personnel have recorded the proportion of defective items for each of 500 monthly shipments of one of the computer components that the company produces. The...
-
Many companies manufacture products that are at least partially produced using chemicals (e.g., paint, gasoline, and steel). In many cases, the quality of the finished product is a function of the...
-
In the product mix model it makes sense to change the maximum sales constraint to a minimum sales constraint, simply by changing the direction of the inequality. Then the input values in row 23 can...
-
Which of Parks statements regarding the asset allocation approaches is correct? A. Only Statement 3 B. Only Statement 4 C. Both Statement 3 and Statement 4 Kevin Kroll is the chair of the investment...
-
The suitability concern discussed by Kroll and Park most likely deals with: A. governance. B. transparency. C. investment horizon. Kevin Kroll is the chair of the investment committee responsible for...
-
Based on the forecasted environment, liquidity planning should take into account that general partners may: A. call capital at a slower pace. B. make distributions at a faster pace. C. exercise an...
Study smarter with the SolutionInn App