What is difference between (a-z) and (a--z)

Answer Posted / basha

var a-z : this shows error message because it does not have
any numeric suffix
var a1-a5: it diplays variables a1 to a5
i.e it only shows variable ranges

var a--z : it displays a to z it includes variables between
a to z
ex;
data k;
input a b c z;
datalines;
1 2 3 4
5 6 7 8
;
proc print;
var a--z;
run;
proc print;
var a-z; >>>>>>this shows error:numuric is not there
run;

Is This Answer Correct ?    26 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the use of proc contents and proc print in sas? : Sas-administrator

709


Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com

1694


how to do user inputs and command line arguments in sas?

2519


Explain translate function?

745


what are input dataset and output dataset options? : Sas programming

664






Are you sensitive to code walk-throughs peer review or QC review?

2719


How to test the debugging in sas?

705


explain the concepts and capabilities of business object? : Sas-bi

628


What is a pdv and what are its functions?

683


What are the difference between the sas data step and sas procs?

716


I need level 2 to 5 sas using companies in india

2020


Which date function advances a date, time or datetime value by a given interval?

763


what are the component of range? : Sas-bi

704


What is the differnce between SDTM 3.1.2 to 3.1.1 version

4726


What is the difference between one to one merge and match merge? Give an example.

672