DATA Step, Macro, Functions and more

Finding all combination with 3-digit pattern.

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 6
Accepted Solution

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: 6,928

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

View solution in original post


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

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
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 129 views
  • 1 like
  • 2 in conversation