Architecting, installing and maintaining your SAS environment

In PROC PRINT, can you print only variables that begin with the letter “A”?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 5
Accepted Solution

In PROC PRINT, can you print only variables that begin with the letter “A”?

hi


Accepted Solutions
Solution
‎04-14-2012 12:18 AM
Super Contributor
Posts: 1,636

Re: In PROC PRINT, can you print only variables that begin with the letter “A”?

Posted in reply to venkateshn

yes. example:

data have;

input a1 a2 b;

cards;

1 2 3

;

proc print;

var a:;

run;

View solution in original post


All Replies
Solution
‎04-14-2012 12:18 AM
Super Contributor
Posts: 1,636

Re: In PROC PRINT, can you print only variables that begin with the letter “A”?

Posted in reply to venkateshn

yes. example:

data have;

input a1 a2 b;

cards;

1 2 3

;

proc print;

var a:;

run;

🔒 This topic is solved and locked.

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

Discussion stats
  • 1 reply
  • 586 views
  • 0 likes
  • 2 in conversation