|
|
set question
hi everyone,
here is my problem.
I have several datasets having the same name's beginning. In my case,
it's final_app.
As those data sets have been created with loops, their name are :
final_app11
final_app12
final_app21
etc
etc
etc.
And i need to concatenate all those tables in one.
i tried with a double loop and final_app&i&j but it doesn't seem to
work.
Someone would have an idea ?
Vince
|
|
0
|
|
|
|
Reply
|
kid20100 (13)
|
8/16/2007 12:54:54 PM |
|
Proc SQL ;
Select MemName Into : DSNList Separated By ' '
From Dictionary.Tables
Where LibName = '<Your Library Name All Upper Case>'
And MemName Like 'FINAL_APP%' ;
Quit ;
Data Need ;
Set &DSNList ;
Run ;
Toby Dunn
Two wrongs are only the beginning.
Success always occurs in private and failure in full view.
Experience is something you don't get until just after you need it.
From: vince dubois <kid20100@GMAIL.COM>
Reply-To: vince dubois <kid20100@GMAIL.COM>
To: SAS-L@LISTSERV.UGA.EDU
Subject: set question
Date: Thu, 16 Aug 2007 05:54:54 -0700
hi everyone,
here is my problem.
I have several datasets having the same name's beginning. In my case,
it's final_app.
As those data sets have been created with loops, their name are :
final_app11
final_app12
final_app21
etc
etc
etc.
And i need to concatenate all those tables in one.
i tried with a double loop and final_app&i&j but it doesn't seem to
work.
Someone would have an idea ?
Vince
_________________________________________________________________
A new home for Mom, no cleanup required. All starts here.
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
|
|
0
|
|
|
|
Reply
|
tobydunn (6070)
|
8/16/2007 2:07:29 PM
|
|
Hi Vince,
Here's another approach. But I personally prefer Toby's.
Florio
data final_app11;
x = 11;
data final_app12;
x= 12;
data final_app21;
x = 21;
run;
data final_app22;
x = 22;
run;
%macro test;
%do i = 1 %to 2;
%do j = 1 %to 2;
proc append base = all data = final_app&i&j;
run;
%end;
%end;
%mend test;
%test;
On Thu, 16 Aug 2007 14:07:29 +0000, toby dunn <tobydunn@HOTMAIL.COM> wrote:
>Proc SQL ;
>Select MemName Into : DSNList Separated By ' '
>From Dictionary.Tables
> Where LibName = '<Your Library Name All Upper Case>'
> And MemName Like 'FINAL_APP%' ;
>Quit ;
>
>
>Data Need ;
>Set &DSNList ;
>Run ;
>
>
>Toby Dunn
>
>
>Two wrongs are only the beginning.
>
>Success always occurs in private and failure in full view.
>
>Experience is something you don't get until just after you need it.
>
>
>
>
>
>From: vince dubois <kid20100@GMAIL.COM>
>Reply-To: vince dubois <kid20100@GMAIL.COM>
>To: SAS-L@LISTSERV.UGA.EDU
>Subject: set question
>Date: Thu, 16 Aug 2007 05:54:54 -0700
>
>hi everyone,
>
>here is my problem.
>
>I have several datasets having the same name's beginning. In my case,
>it's final_app.
>As those data sets have been created with loops, their name are :
>final_app11
>final_app12
>final_app21
>etc
>etc
>etc.
>
>And i need to concatenate all those tables in one.
>
>i tried with a double loop and final_app&i&j but it doesn't seem to
>work.
>
>Someone would have an idea ?
>
>Vince
>
>_________________________________________________________________
>A new home for Mom, no cleanup required. All starts here.
>http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
|
|
0
|
|
|
|
Reply
|
foa2 (105)
|
8/16/2007 2:23:04 PM
|
|
Use dictionary.tables to output all the members with that pattern, and
insert into macrovar
Example 6 SQL help
then look at the select INTO operator under the same
I use this a lot as I do not know how many datasets I am dealing with
(an old SAS programmer forcing myself to use proc sql!)
On Aug 16, 1:54 pm, vince dubois <kid20...@gmail.com> wrote:
> hi everyone,
>
> here is my problem.
>
> I have several datasets having the same name's beginning. In my case,
> it's final_app.
> As those data sets have been created with loops, their name are :
> final_app11
> final_app12
> final_app21
> etc
> etc
> etc.
>
> And i need to concatenate all those tables in one.
>
> i tried with a double loop and final_app&i&j but it doesn't seem to
> work.
>
> Someone would have an idea ?
>
> Vince
|
|
0
|
|
|
|
Reply
|
jontugman (18)
|
8/16/2007 3:06:17 PM
|
|
THAKS FOR YOUR HELP!
|
|
0
|
|
|
|
Reply
|
kid20100 (13)
|
8/17/2007 12:13:03 PM
|
|
|
4 Replies
31 Views
(page loaded in 4.176 seconds)
Similiar Articles: Basic AWK question: set shell vars from inside awk. - comp.lang ...Hi all I am new to awk. Trying to parse "test" from the following input from inside a shell script. a=test.val.something echo $a | aw... Question about setting environment variables for ssh remote ...For example, ssh user@host modinfo would complain the command modinfo is not found on a remote Solaris host. Need to run ssh user@host /usr/sbin/modin... Setting relationships questions - comp.databases.ms-access ...I have the following tables and fields in each table. Table: Customers CustomerID Company Table: Contacts ContactID Custom... ssh question: KeepAlive setting? - comp.unix.shellI have an ssh connection that times out on inactivity. I want to put something in the connection to generate a bit of "noise" on the connection eve... Set passwords to not expire on Samba - comp.os.linux.questions ...I have Samba running as my only domain controller. How can I set my user's passwords to not expire. I don't want the users to have to change their use... CMASK & UMASK in Solaris 10 - Beginner Question - comp.unix ...Help setting up sshd, please - comp.os.linux.setup CMASK & UMASK in Solaris 10 - Beginner Question - comp ... How to set HTTP ... unix.solaris ssh question ... set up your ... NFS on zfs question - comp.unix.solarisOn Jan 8, 9:10=A0pm, Rick Smith <ricksmith.use...@gmail.com> wrote: > I get the zfs set sharenfs=3Don mypool/myzfs > to share /mypool/myzfs > > what about if I want ... How to turn off SNMP & change the default credential - Newbie ...We are getting report that the SNMP is set to default credential. Any idea how we ... default credential - Newbie ... how to turn off purple forms- or fields ... Question ... [csh] setenv question - comp.unix.shellDear all, I'm currently trying to define an alias for setenv in csh to do such job : [kob@is102430 /home/kob]> setenv PATH A:B:B:C:C:A:D:E [kob@is10... Computing Follow set FollowI have a question regarding the computation of FOLLOW sets. Consider the following grammar: A -> aB | a B -> bA | b From the production A -> aB, we ... Set QuestionMoonrise Kingdom - "Loaded Question" Clip, Ask iJ #4: HAIR DISASTER?!?!, LA Noire - Walkthrough Case 11 The Set Up Part 11 Gameplay, set you free - mymp, The Daily ... SET Questions SetMaharashtra State Eligibility Test is conducted in 29 different subjects and the exam is conducted in three papers. The first paper is General Paper on Teaching and ... 7/2/2012 3:03:31 AM
|
|
|
|
|
|
|
|
|