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
Describe a time when you were really stuck on a problem and how you solved it?
How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?
What are the different types of sas functions?
How are numeric and character missing values represented internally?
How do you specify the number of iterations and specific condition within a single do loop?
What are all the problems you faced while validating tables and reports?
what do the sas log messages "numeric values have been converted to character" mean? : Sas programming
Describe the ways in which you can create a macro variable?
name the scheduler for scheduling job and explain the scheduler? : Sas-di
Mention the category in which sas informats are placed?
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)?
How do you add a number to a macro variable? : sas-macro
Explain the use of proc print and proc contents?
how do you debug and test your sas programs? : Sas programming
where to use sas business intelligence? : Sas-bi