Topics on SAS Arrays

by | Mar 26, 2021 | SAS | 0 comments

1.what is the syntax of SAS Array?

array array-name {n} <$> array-elements <(initial-values)>;

The ARRAY statement is a compiler statement within the data step. In addition, the array elements cannot be used in compiler statements such as DROP or KEEP.

Image
I

Array Q {4} M J S D (0 0 0 0);

array Ac(12) fa1-fa12; /*existing vars*/

  array Aq(4) in1-in4; /* new vars */

ARRAY arrayname [3] $ 2 var1 – var3 (‘H4’ ‘J6’ ‘K3’);

Array Days {7} $20 d1 – d7;

Join Today

Know more about latest trends, News in Field of Data Analytics.

We will offer Free SAS and Python Programme in Data Science & enhance your understanding of data analysis.

By rlochan2021

We offer Everything Free here and always will be, so joining is Risk Free and Always Cost Free.

Check Out These Related Posts

Proc Contents Syntax, points to remember

Basic Syntax is:- PROC CONTENTS DATA=abc; RUN; proc contents data=libref.filename <options> options:- CENTILES Print centiles information for indexed variables DATA= Specify the input data set DETAILS|NODETAILS Include information in the output about the number...

read more

SAS Proc Report Tutorials:- Sample Code

First immerse yourself in learning the Basic options of Proc Report because there are too many and you may get overwhelmed. A Sample Code for you:- proc sql; create table newbaseball as SELECT ‘Name’n as Team, nAtBat , nHits , nHome , nRuns , nRBI , nBB , YrMajor , CrAtBat , CrHits , CrHome […]

read more

SAS SMC (SAS Management Console) Interview Questions

Be assured if you are appearing for SAS based Job of any kind be it Programmer, Analyst, or SAS VA Developer, you may come across question related to SAS Management Console. 1.How to use SAS Management Console to create SAS folders and SAS libraries and to register tables. 2.How to register tables with SAS Visual […]

read more

0 Comments

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *