Hi,
I am trying to import text raw file to sas ( each data separated by space ).
how can i clean up the date before import to sas ? is their any way in sas that i can remove string, unwanted space and etc...then import to sas ?
please see raw.jpg for the text sample set with space and misalign data.
rawdata also attached
final.jpg shows how i need the data.
please take a look at those file and give a idea how I can do this.
Thanks a bunch!!!!!
16 & less 815.35 794.71 723.57 699.52 582.91 468.21 435.99 416.64 351.48 1 087.13 1 059.62 964.76 932.69 777.21 624.28 581.33 555.52 468.63
17 819.99 799.23 727.68 703.50 586.22 470.87 438.47 419.01 353.47 1 093.32 1 065.64 970.24 937.99 781.63 627.83 584.63 558.68 471.30
18 833.72 812.62 739.87 715.28 596.04 478.76 445.82 426.03 359.39 1 111.63 1 083.49 986.49 953.70 794.72 638.34 594.42 568.04 479.19
19 843.59 822.24 748.63 723.75 603.10 484.43 451.10 431.07 363.65 1 124.79 1 096.32 998.18 965.00 804.13 645.90 601.46 574.77 484.87
20 850.54 829.01 754.80 729.71 608.06 488.41 454.81 434.62 366.64 1 134.05 1 105.35 1 006.40 972.94 810.75 651.22 606.41 579.50 488.86
21 858.80 837.06 762.13 736.80 613.97 493.16 459.23 438.85 370.21 1 145.07 1 116.08 1 016.17 982.39 818.62 657.54 612.30 585.13 493.61
22 869.61 847.60 771.72 746.07 621.70 499.37 465.01 444.37 374.87 1 159.48 1 130.13 1 028.96 994.76 828.93 665.82 620.01 592.49 499.82
23 891.49 868.93 791.14 764.84 637.34 511.93 476.71 455.55 384.30 1 188.66 1 158.57 1 054.85 1 019.79 849.79 682.57 635.61 607.40 512.40
24 936.40 912.70 830.99 803.37 669.44 537.72 500.72 478.50 403.65 1 248.53 1 216.93 1 107.99 1 071.16 892.59 716.96 667.63 638.00 538.21
25 950.59 926.53 843.58 815.54 679.59 545.87 508.31 485.75 409.77 1 267.45 1 235.37 1 124.78 1 087.39 906.12 727.82 677.74 647.66 546.36
26 991.46 966.37 879.86 850.61 708.81 569.34 530.17 506.63 427.39 1 321.95 1 288.49 1 173.14 1 134.15 945.08 759.12 706.89 675.51 569.86
27 1 021.27 995.42 906.31 876.18 730.12 586.45 546.10 521.87 440.24 1 361.69 1 327.22 1 208.41 1 168.24 973.49 781.94 728.14 695.82 586.99
28 1 060.29 1 033.45 940.93 909.66 758.01 608.86 566.97 541.80 457.06 1 413.72 1 377.93 1 254.58 1 212.88 1 010.69 811.81 755.96 722.41 609.41
29 1 087.48 1 059.95 965.07 932.99 777.45 624.48 581.51 555.70 468.78 1 449.97 1 413.27 1 286.75 1 243.98 1 036.61 832.63 775.35 740.93 625.04
30 1 118.83 1 090.51 992.89 959.88 799.87 642.48 598.27 571.72 482.30 1 491.78 1 454.02 1 323.85 1 279.85 1 066.49 856.64 797.70 762.29 643.06
F 5,000 & less
Multi-Vehicle Discount No Multi-Vehicle Discount
Date of Print: 2011-03-11 Effective Dates: NB February 10th, 2011 Renewals April 06th, 2011
Belair Insurance Company Rate Pages: Accident Benefits
MVD Indicator
Driving Record 0 1 2 3 4 5 6 7 A 0 1 2 3 4 5 6 7 A
Gender Annual Km Driver age
Multi-Vehicle Discount No Multi-Vehicle Discount
16 & less 815.35 794.71 723.57 699.52 582.91 468.21 435.99 416.64 351.48 1 087.13 1 059.62 964.76 932.69 777.21 624.28 581.33 555.52 468.63
17 819.99 799.23 727.68 703.50 586.22 470.87 438.47 419.01 353.47 1 093.32 1 065.64 970.24 937.99 781.63 627.83 584.63 558.68 471.30
18 833.72 812.62 739.87 715.28 596.04 478.76 445.82 426.03 359.39 1 111.63 1 083.49 986.49 953.70 794.72 638.34 594.42 568.04 479.19
19 843.59 822.24 748.63 723.75 603.10 484.43 451.10 431.07 363.65 1 124.79 1 096.32 998.18 965.00 804.13 645.90 601.46 574.77 484.87
20 850.54 829.01 754.80 729.71 608.06 488.41 454.81 434.62 366.64 1 134.05 1 105.35 1 006.40 972.94 810.75 651.22 606.41 579.50 488.86
21 858.80 837.06 762.13 736.80 613.97 493.16 459.23 438.85 370.21 1 145.07 1 116.08 1 016.17 982.39 818.62 657.54 612.30 585.13 493.61
22 869.61 847.60 771.72 746.07 621.70 499.37 465.01 444.37 374.87 1 159.48 1 130.13 1 028.96 994.76 828.93 665.82 620.01 592.49 499.82
23 891.49 868.93 791.14 764.84 637.34 511.93 476.71 455.55 384.30 1 188.66 1 158.57 1 054.85 1 019.79 849.79 682.57 635.61 607.40 512.40
24 936.40 912.70 830.99 803.37 669.44 537.72 500.72 478.50 403.65 1 248.53 1 216.93 1 107.99 1 071.16 892.59 716.96 667.63 638.00 538.21
25 950.59 926.53 843.58 815.54 679.59 545.87 508.31 485.75 409.77 1 267.45 1 235.37 1 124.78 1 087.39 906.12 727.82 677.74 647.66 546.36
26 991.46 966.37 879.86 850.61 708.81 569.34 530.17 506.63 427.39 1 321.95 1 288.49 1 173.14 1 134.15 945.08 759.12 706.89 675.51 569.86
27 1 021.27 995.42 906.31 876.18 730.12 586.45 546.10 521.87 440.24 1 361.69 1 327.22 1 208.41 1 168.24 973.49 781.94 728.14 695.82 586.99
28 1 060.29 1 033.45 940.93 909.66 758.01 608.86 566.97 541.80 457.06 1 413.72 1 377.93 1 254.58 1 212.88 1 010.69 811.81 755.96 722.41 609.41
29 1 087.48 1 059.95 965.07 932.99 777.45 624.48 581.51 555.70 468.78 1 449.97 1 413.27 1 286.75 1 243.98 1 036.61 832.63 775.35 740.93 625.04
30 1 118.83 1 090.51 992.89 959.88 799.87 642.48 598.27 571.72 482.30 1 491.78 1 454.02 1 323.85 1 279.85 1 066.49 856.64 797.70 762.29 643.06
F 5,001 - 10,000
Date of Print: 2011-03-11 Effective Dates: NB February 10th, 2011 Renewals April 06th, 2011
Belair Insurance Company Rate Pages: Accident Benefits
MVD Indicator
Driving Record 0 1 2 3 4 5 6 7 A 0 1 2 3 4 5 6 7 A
Gender Annual Km Driver age
I am trying to import text raw file to sas ( each data separated by space ).
how can i clean up the date before import to sas ? is their any way in sas that i can remove string, unwanted space and etc...then import to sas ?
please see raw.jpg for the text sample set with space and misalign data.
rawdata also attached
final.jpg shows how i need the data.
please take a look at those file and give a idea how I can do this.
Thanks a bunch!!!!!
16 & less 815.35 794.71 723.57 699.52 582.91 468.21 435.99 416.64 351.48 1 087.13 1 059.62 964.76 932.69 777.21 624.28 581.33 555.52 468.63
17 819.99 799.23 727.68 703.50 586.22 470.87 438.47 419.01 353.47 1 093.32 1 065.64 970.24 937.99 781.63 627.83 584.63 558.68 471.30
18 833.72 812.62 739.87 715.28 596.04 478.76 445.82 426.03 359.39 1 111.63 1 083.49 986.49 953.70 794.72 638.34 594.42 568.04 479.19
19 843.59 822.24 748.63 723.75 603.10 484.43 451.10 431.07 363.65 1 124.79 1 096.32 998.18 965.00 804.13 645.90 601.46 574.77 484.87
20 850.54 829.01 754.80 729.71 608.06 488.41 454.81 434.62 366.64 1 134.05 1 105.35 1 006.40 972.94 810.75 651.22 606.41 579.50 488.86
21 858.80 837.06 762.13 736.80 613.97 493.16 459.23 438.85 370.21 1 145.07 1 116.08 1 016.17 982.39 818.62 657.54 612.30 585.13 493.61
22 869.61 847.60 771.72 746.07 621.70 499.37 465.01 444.37 374.87 1 159.48 1 130.13 1 028.96 994.76 828.93 665.82 620.01 592.49 499.82
23 891.49 868.93 791.14 764.84 637.34 511.93 476.71 455.55 384.30 1 188.66 1 158.57 1 054.85 1 019.79 849.79 682.57 635.61 607.40 512.40
24 936.40 912.70 830.99 803.37 669.44 537.72 500.72 478.50 403.65 1 248.53 1 216.93 1 107.99 1 071.16 892.59 716.96 667.63 638.00 538.21
25 950.59 926.53 843.58 815.54 679.59 545.87 508.31 485.75 409.77 1 267.45 1 235.37 1 124.78 1 087.39 906.12 727.82 677.74 647.66 546.36
26 991.46 966.37 879.86 850.61 708.81 569.34 530.17 506.63 427.39 1 321.95 1 288.49 1 173.14 1 134.15 945.08 759.12 706.89 675.51 569.86
27 1 021.27 995.42 906.31 876.18 730.12 586.45 546.10 521.87 440.24 1 361.69 1 327.22 1 208.41 1 168.24 973.49 781.94 728.14 695.82 586.99
28 1 060.29 1 033.45 940.93 909.66 758.01 608.86 566.97 541.80 457.06 1 413.72 1 377.93 1 254.58 1 212.88 1 010.69 811.81 755.96 722.41 609.41
29 1 087.48 1 059.95 965.07 932.99 777.45 624.48 581.51 555.70 468.78 1 449.97 1 413.27 1 286.75 1 243.98 1 036.61 832.63 775.35 740.93 625.04
30 1 118.83 1 090.51 992.89 959.88 799.87 642.48 598.27 571.72 482.30 1 491.78 1 454.02 1 323.85 1 279.85 1 066.49 856.64 797.70 762.29 643.06
F 5,000 & less
Multi-Vehicle Discount No Multi-Vehicle Discount
Date of Print: 2011-03-11 Effective Dates: NB February 10th, 2011 Renewals April 06th, 2011
Belair Insurance Company Rate Pages: Accident Benefits
MVD Indicator
Driving Record 0 1 2 3 4 5 6 7 A 0 1 2 3 4 5 6 7 A
Gender Annual Km Driver age
Multi-Vehicle Discount No Multi-Vehicle Discount
16 & less 815.35 794.71 723.57 699.52 582.91 468.21 435.99 416.64 351.48 1 087.13 1 059.62 964.76 932.69 777.21 624.28 581.33 555.52 468.63
17 819.99 799.23 727.68 703.50 586.22 470.87 438.47 419.01 353.47 1 093.32 1 065.64 970.24 937.99 781.63 627.83 584.63 558.68 471.30
18 833.72 812.62 739.87 715.28 596.04 478.76 445.82 426.03 359.39 1 111.63 1 083.49 986.49 953.70 794.72 638.34 594.42 568.04 479.19
19 843.59 822.24 748.63 723.75 603.10 484.43 451.10 431.07 363.65 1 124.79 1 096.32 998.18 965.00 804.13 645.90 601.46 574.77 484.87
20 850.54 829.01 754.80 729.71 608.06 488.41 454.81 434.62 366.64 1 134.05 1 105.35 1 006.40 972.94 810.75 651.22 606.41 579.50 488.86
21 858.80 837.06 762.13 736.80 613.97 493.16 459.23 438.85 370.21 1 145.07 1 116.08 1 016.17 982.39 818.62 657.54 612.30 585.13 493.61
22 869.61 847.60 771.72 746.07 621.70 499.37 465.01 444.37 374.87 1 159.48 1 130.13 1 028.96 994.76 828.93 665.82 620.01 592.49 499.82
23 891.49 868.93 791.14 764.84 637.34 511.93 476.71 455.55 384.30 1 188.66 1 158.57 1 054.85 1 019.79 849.79 682.57 635.61 607.40 512.40
24 936.40 912.70 830.99 803.37 669.44 537.72 500.72 478.50 403.65 1 248.53 1 216.93 1 107.99 1 071.16 892.59 716.96 667.63 638.00 538.21
25 950.59 926.53 843.58 815.54 679.59 545.87 508.31 485.75 409.77 1 267.45 1 235.37 1 124.78 1 087.39 906.12 727.82 677.74 647.66 546.36
26 991.46 966.37 879.86 850.61 708.81 569.34 530.17 506.63 427.39 1 321.95 1 288.49 1 173.14 1 134.15 945.08 759.12 706.89 675.51 569.86
27 1 021.27 995.42 906.31 876.18 730.12 586.45 546.10 521.87 440.24 1 361.69 1 327.22 1 208.41 1 168.24 973.49 781.94 728.14 695.82 586.99
28 1 060.29 1 033.45 940.93 909.66 758.01 608.86 566.97 541.80 457.06 1 413.72 1 377.93 1 254.58 1 212.88 1 010.69 811.81 755.96 722.41 609.41
29 1 087.48 1 059.95 965.07 932.99 777.45 624.48 581.51 555.70 468.78 1 449.97 1 413.27 1 286.75 1 243.98 1 036.61 832.63 775.35 740.93 625.04
30 1 118.83 1 090.51 992.89 959.88 799.87 642.48 598.27 571.72 482.30 1 491.78 1 454.02 1 323.85 1 279.85 1 066.49 856.64 797.70 762.29 643.06
F 5,001 - 10,000
Date of Print: 2011-03-11 Effective Dates: NB February 10th, 2011 Renewals April 06th, 2011
Belair Insurance Company Rate Pages: Accident Benefits
MVD Indicator
Driving Record 0 1 2 3 4 5 6 7 A 0 1 2 3 4 5 6 7 A
Gender Annual Km Driver age