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

Describe a time when you were really stuck on a problem and how you solved it?

2265


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

1751


What are the different types of sas functions?

785


How are numeric and character missing values represented internally?

1330


How do you specify the number of iterations and specific condition within a single do loop?

762






What are all the problems you faced while validating tables and reports?

3178


what do the sas log messages "numeric values have been converted to character" mean? : Sas programming

726


Describe the ways in which you can create a macro variable?

769


name the scheduler for scheduling job and explain the scheduler? : Sas-di

776


Mention the category in which sas informats are placed?

766


Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?

1392


How do you add a number to a macro variable? : sas-macro

692


Explain the use of proc print and proc contents?

692


how do you debug and test your sas programs? : Sas programming

755


where to use sas business intelligence? : Sas-bi

729