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 do you know about sas and what we do? : sas-grid-administration

689


what is enterprise guide? What is the use of it? : Sas programming

625


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

668


What are symget and symput? : sas-macro

843


How long can a macro variable be? A token? : sas-macro

823






What are the special input delimiters used in SAS?

751


What do you code to create a macro? : sas-macro

677


What is the maximum length of the macro variable? : sas-macro

727


How would you identify a macro variable?

741


what are the benefits of data integration? : Sas-di

632


what is intially documentation in sas?

4466


How do you convert basic cube to transaction cube and transaction cube to basic cube?

1877


Have you ever used the SAS Debugger?

1322


What is proc sort?

809


In sas admin differentiate between roles and capabilities? : sas-grid-administration

652