data tq84_ts;
/*
missover: skip over the missing german translation of six:
otherwise ge would be assigned 3
*/
infile datalines missover;
input
num
en $
ge $
;
datalines;
2 two zwei
6 six
3 three drei
1 one eins
;
proc print data=tq84_ts;
run;
data tq84_ts;
infile datalines;
/* Dont assign any value to any variable: */
input;
/* _infile_ apparently stores the last read line */
put _n_ : _infile_;
datalines;
Lorem ipsum dolor sit amet, consetetur
sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore
magna aliquyam erat, sed diam voluptua.
At vero eos et accusam et justo duo
dolores et ea rebum.
;
proc print data=tq84_ts;
run;
data tq84_s;
infile datalines;
length col_1 $25;
length col_2 $10;
length col_3 $10;
input
col_1
col_2
col_3
;
datalines;
x y z
one two three
foo bar baz
longerThanEightCharacters strawberry blackberry
;
proc print data=tq84_s;
run;
data tq84_data;
array num{*} $20 num_1-num_10;
input num_1-num_10;
datalines;
one two three four five six seven eight nine ten
eins zwei drei vier fünf sechs sieben acht neun zehn
un deux trois quattre cinque six sept huit neuf dix
run;
proc print
data=tq84_data;
run;