C:StatesDatacrime.dat
?
filename crime 'c:statesdatacrime.dat';
filename crime c:statesdatacrime.dat;
fileref crime 'c:statesdatacrime.dat';
filename 'c:statesdatacrime' crime.dat;
infile products obs 15;
infile products obs=15;
input products obs=15;
input products 1-15;
data _null_; set work.patients; infile 'c:clinicpatients eferals.dat'; input id $ 1-4 sex 6 $ age 8-9 height 11-12 weight 14-16 pulse 18-20; run;
data referals.dat; set work.patients; input id $ 1-4 sex $ 6 age 8-9 height 11-12 weight 14-16 pulse 18-20; run;
data _null_; set work.patients; file c:clinicpatients eferals.dat; put id $ 1-4 sex 6 $ age 8-9 height 11-12 weight 14-16 pulse 18-20; run;
data _null_; set work.patients; file 'c:clinicpatients eferals.dat'; put id $ 1-4 sex 6 $ age 8-9 height 11-12 weight 14-16 pulse 18-20; run;
data work.salesrep; infile empdata; input ID $ 1-4 LastName $ 6-12 FirstName $ 14-18 City $ 20-29; run; proc print data=work.salesrep; run;
data work.salesrep; infile empdata; input ID $ 1-4 Name $ 6-12 FirstName $ 14-18 City $ 20-29; run; proc print data=work.salesrep; run;
data work.salesrep; infile empdata; input ID $ 1-4 name1 $ 6-12 name2 $ 14-18 City $ 20-29; run; proc print data=work.salesrep; run;
Field Name
|
Start Column
|
End Column
|
Data Type
|
---|---|---|---|
StockNumber
|
1
|
3
|
character
|
Finish
|
5
|
9
|
character
|
Style
|
11
|
18
|
character
|
Item
|
20
|
24
|
character
|
Price
|
27
|
32
|
numeric
|
input StockNumber $ 1-3 Finish $ 5-9 Style $ 11-18 Item $ 20-24 Price 27-32;
input StockNumber $ 1-3 Price 27-32 Item $ 20-24 Finish $ 5-9 Style $ 11-18;
input $ StockNumber 1-3 Price 27-32 $ Item 20-24 $ Finish 5-9 $ Style 11-18;
input StockNumber $ 1-3 Price $ 27-32 Item $ 20-24 Finish $ 5-9 Style $ 11-18;
income=income*1.00;
income=income+(income*2.00);
income=income*2;
income=*2;
data finance.newloan; input datalines; if country='JAPAN'; MonthAvg=amount/12; 1998 US CARS 194324.12 1998 US TRUCKS 142290.30 1998 CANADA CARS 10483.44 1998 CANADA TRUCKS 93543.64 1998 MEXICO CARS 22500.57 1998 MEXICO TRUCKS 10098.88 1998 JAPAN CARS 15066.43 1998 JAPAN TRUCKS 40700.34 ;
data finance.newloan; input Year 1-4 Country $ 6-11 Vehicle $ 13-18 Amount 20-28; if country='JAPAN'; MonthAvg=amount/12; datalines; run;
data finance.newloan; input Year 1-4 Country 6-11 Vehicle 13-18 Amount 20-28; if country='JAPAN'; MonthAvg=amount/12; datalines; 1998 US CARS 194324.12 1998 US TRUCKS 142290.30 1998 CANADA CARS 10483.44 1998 CANADA TRUCKS 93543.64 1998 MEXICO CARS 22500.57 1998 MEXICO TRUCKS 10098.88 1998 JAPAN CARS 15066.43 1998 JAPAN TRUCKS 40700.34 ;
data finance.newloan; input Year 1-4 Country $ 6-11 Vehicle $ 13-18 Amount 20-28; if country='JAPAN'; MonthAvg=amount/12; datalines; 1998 US CARS 194324.12 1998 US TRUCKS 142290.30 1998 CANADA CARS 10483.44 1998 CANADA TRUCKS 93543.64 1998 MEXICO CARS 22500.57 1998 MEXICO TRUCKS 10098.88 1998 JAPAN CARS 15066.43 1998 JAPAN TRUCKS 40700.34 ;
if sex=f;
if sex=F;
if sex='F';