Question
You have a text file called bankdata.txt with data values arranged as follows: Variable Description Starting Column Ending Column Data Type Name Name 1 15
You have a text file called bankdata.txt with data values arranged as follows:
Variable Description Starting Column Ending Column Data Type
Name Name 1 15 Char
Acct Account number 16 20 Char Balance Acct balance 21 26 Num
Rate Interest rate 27 30 Num
Create a temporary SAS data set called Bank using this data file. Use column input to specify the location of each value. Include in this data set a variable called Interest computed by multiplying Balance by Rate. List the contents of this data set using PROC PRINT.
Higginsville Hike | 4030.2937446.539 |
Really Roaring | 4027.4047442.147 |
Cushetunk Climb | 4037.0247448.014 |
Uplands Trek | 4030.9907452.794 |
Create a temporary SAS data set called Cache using this data file. Use column input to read the data values.
- Repeat Problem using formatted input to read the data values instead of column.
Step by Step Solution
3.52 Rating (155 Votes )
There are 3 Steps involved in it
Step: 1
36 You have a text file called bankdatatxt with data values arranged as follows Variable Description Starting Column Ending Column Data Type Name Name 1 15 Char Acct Account number 16 20 Char Balance ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started