Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
%Include a list of variables in Keep or Keep= --- Doesn't works as expected...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dave Isherwood  
View profile  
 More options Apr 29 2012, 12:32 am
Newsgroups: comp.soft-sys.sas
From: Dave Isherwood <isherwo...@gmail.com>
Date: Sat, 28 Apr 2012 21:32:08 -0700 (PDT)
Local: Sun, Apr 29 2012 12:32 am
Subject: %Include a list of variables in Keep or Keep= --- Doesn't works as expected...
I have rather broad file with 1500 variables and my interest fits into several groups and I have these in external files (Z/OS) and use them as the VAR option in Proc Compare. Elsewhere I'd like to use these as part of a Data step with either:

  1. Keep %include External(Varlist);
  2. Set stuff(Keep= %include External(Varlist);

I imagined these would work but both fail with the '%' being unexpected.

Any ideas how I can include the list of variables?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Barry Schwarz  
View profile  
 More options Apr 29 2012, 11:32 am
Newsgroups: comp.soft-sys.sas
From: Barry Schwarz <schwa...@dqel.com>
Date: Sun, 29 Apr 2012 08:32:03 -0700
Local: Sun, Apr 29 2012 11:32 am
Subject: Re: %Include a list of variables in Keep or Keep= --- Doesn't works as expected...
On Sat, 28 Apr 2012 21:32:08 -0700 (PDT), Dave Isherwood

<isherwo...@gmail.com> wrote:
>I have rather broad file with 1500 variables and my interest fits into several groups and I have these in external files (Z/OS) and use them as the VAR option in Proc Compare. Elsewhere I'd like to use these as part of a Data step with either:

>  1. Keep %include External(Varlist);
>  2. Set stuff(Keep= %include External(Varlist);

>I imagined these would work but both fail with the '%' being unexpected.

>Any ideas how I can include the list of variables?

Note that #2 is missing a ).

Have you tried

     Keep
         %include ...
         ;

and

     Set stuff(Keep=
                             %include ...
                  );

--
Remove del for email


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »