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.

  1. 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

1 Expert Approved Answer
Step: 1 Unlock

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 ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!