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
What makes sas stand out to be the best over other data analytics tools?
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?
Describe the function and utility of the most difficult SAS macro that you have written?
what is hierarchy flattening? : Sas-di
Approximately what date is represented by the SAS date value of 730?
What is the command used to find missing values?
what is the difference between infile and input? : Sas-administrator
What is the use of the %include statement?
How would you identify a macro variable?
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
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 ...
What are common programming errors committed in sas
What is proc sort?
Briefly explain input and put function?
What do the SAS log messages "numeric values have been converted to character" mean?