What's the difference between VAR A1 - A4 and VAR A1 - A4?

What's the difference between VAR A1 - A4 and VAR A1 - A4?..

Answer / viditmalhotra89

I guess you mean: difference between Var A1-A4 & Var A1--A4!
A1-A4: assumes the variable names as A1,A2,A3,A4 sequentially.
A1--A4 : writes all the variables of the data set which are between the variables: A1 & A4,
eg: it can be name,Id etc.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAS Interview Questions

data task; input id date date9. visit; cards; 101 01jan2015 1 101 02jan2015 2 101 06jan2015 3 102 04jan2015 1 102 07jan2015 2 102 12jan2015 3 103 06jan2015 1 103 13jan2015 2 ; run; write a program to find out missing dates between visits by each subject.

1 Answers  

what is Business Intelligence?

3 Answers   CitiGroup,

Name statements that are execution only.

14 Answers   Accenture,

Please, anyone, let me know the style or an example of using 'by='/'by' variable of a PDV(Program Data Vector)

3 Answers   Verinon Technology Solutions,

How would you code the criteria to restrict the output to be produced?

6 Answers   Accenture,

How would you delete observations with duplicate keys?

6 Answers  

i have multiple .csv files in a unix directory. every file is having variable names as header.even for empty file also. suppose take 3 files a.csv b.csv c.csv a.csv contains data as name;age,salary; raja;34;4000; ravi;33;5000; kumar;25;3000; b.csv contains data as name;age,salary; ajay;40;4500; and c.csv contains name;age,salary; (only headers) Now i want to import and append all these files in to a single dataset. i tried infile statement with *.csv to import all at a time. but i m not getting correct data. please help me . its urgent. thank you in advance

2 Answers   Tech Mahindra,

what the use of proc glm

1 Answers   Accenture, C Marc,

How many tiers in sas architecture?

2 Answers  

What techniques and/or PROCs do you use for tables?

4 Answers   Oracle,

how does sas know on which server the piece of code to be executed ? say if a proc olap code is written then how the sas application would detect on which server to execute.

1 Answers   TCS,

Tell e how how dealt with..

0 Answers