- data vivi.sevenproblem3;
- infile "C:\Users\vivid\Desktop\SAS EG\sas\learn sas by_example\Learning\sales.sas7bdat";
- /*第1种*/
- input empt $
- name $
- region:$
- customer $
- item $
- quantity
- unitcost
- totalsales
- ;
- /*第二种*/
- input empt $1-4
- name $5-20
- region $21-30
- customer $31-40
- item $41-45
- quantity $46-48
- unitcost 49-52
- totalsales 53-55
- ;
- /*第3种*/
- input empt: $4.
- name: $16.
- region: $10.
- customer: $10.
- item: $5.
- quantity: $3.
- unitcost:
- totalsales:
- date:mmddyy10.
- ;