The SAS Output Delivery System and reporting techniques

importing data using infile

Reply
Occasional Contributor
Posts: 8

importing data using infile

I tried to import excel file using the file, but SAS data step processing never end running, I just have to end the process. I am not sure what why I couldn't read in the data

Any help please?

NOTE:
DATA statement used (Total process time):

      real time           3:47.30

      cpu time            0.37 seconds

531   data cholesterol;

532  infile 'F:\UQ\dcm\module 1\cholesterol.prn';

533  input @6 id 3. @16 cholest 1. @20 gender $1.
@30 systolic 3. @38 diastolic 3. @46 height 3.

533!  @54 weight 3. @64 ses 1. @73 dob $20 @ 89 da

534  te_assess $10.;

535  ;

Respected Advisor
Posts: 4,606

Re: importing data using infile

You need a run; statement at the end for the data step to execute.

PG
Occasional Contributor
Posts: 8

Re: importing data using infile


Thanks heaps

that solved my problem.

much appreciated

Post a Question
Discussion Stats
  • 2 replies
  • 175 views
  • 0 likes
  • 2 in conversation