## Finding all combination with 3-digit pattern.

Solved
Occasional Contributor
Posts: 6

# Finding all combination with 3-digit pattern.

datalines;

input id label \$;

1 A

2 B

3 C

4 D

5 A ....

10000 A;

how can i find no of all 3-digit pattern?  label within A to M

Accepted Solutions
Solution
‎03-08-2017 02:22 AM
Super User
Posts: 9,941

## Re: Finding all combination with 3-digit pattern.

[ Edited ]
``where 100 <= id <= 999 and 'A' <= label <= 'M';``

Edited b/c of numeric id.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code

All Replies
Solution
‎03-08-2017 02:22 AM
Super User
Posts: 9,941

## Re: Finding all combination with 3-digit pattern.

[ Edited ]
``where 100 <= id <= 999 and 'A' <= label <= 'M';``

Edited b/c of numeric id.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
☑ This topic is solved.