Common array functions in SAS

Source: Internet
Author: User

The usual array functions in SAS are: Dim dimk hbound Hboundk LBound lboundk

The array function counts the dimensions, the upper and lower bounds of the array, and facilitates the writing of the portable program, which includes:
Dim (x) To find the number of elements in the first dimension of the array x
DIMK (x) to find the number of elements in the array x K dimension
LBound (x) to find the lower bound of the first dimension of array X
Hbound (x) to find the upper bound of the first dimension of array X
LBOUNDK (x) to find the lower bound of the array x K dimension
HBOUNDK (x) to find the upper bound of the array x K dimension

For example:
Dim (x) Calculates the number of elements in the first dimension of the array x, such as X (3,6,2), then Dim (x) =3
HBOUNDK (x) computes the upper bound of the first dimension of the array x, such as X (4,6), then HBOUNDK (x) =4
LBOUNDK (x) computes the lower bound of the first dimension of the array x, such as X (3:6,2:8), then LBOUNDK (x) =3

Common array functions in SAS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.