Skip to Main Content
SAS Certified Professional Prep Guide
book

SAS Certified Professional Prep Guide

by SAS Institute
October 2019
Intermediate to advanced content levelIntermediate to advanced
430 pages
19h 4m
English
SAS Institute
Content preview from SAS Certified Professional Prep Guide

Expanding Your Use of One-Dimensional Arrays

Creating Character Columns with an Array

Suppose you need to create an array named States with 50 character columns.
By default, array columns are created as numeric and with the length of each column as 8. For character columns, you can specify a length other than 8 following the dollar sign ($).
The following example creates the States array with 50 character elements named State1-State50, each with a length of 12.
array States[50] $12 State1-State50;
If you do not specify a length, the default length of 8 is assigned to State1-State50.
array States[50] $ State1-State50;

Specifying Lower and Upper Bounds

When you specify an array with an asterisk (*), by default, the lower bound ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

SAS Certified Specialist Prep Guide

SAS Certified Specialist Prep Guide

SAS Institute
SAS in Practice

SAS in Practice

Ekta Saraogi

Publisher Resources

ISBN: 9781642954692