How do you read in the variables that you need?

Answer Posted / hitesh

You can read in the variable with INPUT statement.
There are more than 1 ways use input statement.

eg:
input name$ no sal;

...OR you can read selected fields from byte positions at which they appear in the input file.

eg:
INPUT @1 NAME $20.
@21 No 3.
@24 Sal 7.;

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What makes sas stand out to be the best over other data analytics tools?

591


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

752


Describe the function and utility of the most difficult SAS macro that you have written?

2027


what is hierarchy flattening? : Sas-di

622


Approximately what date is represented by the SAS date value of 730?

750






What is the command used to find missing values?

595


what is the difference between infile and input? : Sas-administrator

615


What is the use of the %include statement?

692


How would you identify a macro variable?

653


I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry

1329


if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...

946


What are common programming errors committed in sas

675


What is proc sort?

724


Briefly explain input and put function?

637


What do the SAS log messages "numeric values have been converted to character" mean?

892