You have a text file called bankdata.txt with data values arranged as follows: Variable Description Starting Column
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 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.
Data Analysis and Decision Making
ISBN: 978-0538476126
4th edition
Authors: Christian Albright, Wayne Winston, Christopher Zappe