LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 24 Mar 2006 16:00:37 -0500
Reply-To:   "Rickards, Clinton (GE Consumer Finance)" <clinton.rickards@GE.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Rickards, Clinton (GE Consumer Finance)" <clinton.rickards@GE.COM>
Subject:   replicating a table structure
Content-Type:   text/plain; charset="iso-8859-1"

All,

I'm drawing a blank on a better solution than what I have, so I'd appreciate your input.

My program needs to merge a couple of data sets and write a temp target table which then appended to a permanent data set. I want to ensure that the temp table has the same column attributes as the permanent data set so that PROC APPEND will not complain. Here is the solution I have. it works but it really looks odd and I'm drawing a blank on a better solution than what I have, so I'd appreciate your input.

data append_em; /* get variable attributes - nothing is read */ if "a" = "b" then set mylib.perm_data_set; ---merge code and other stuff here --- run; proc append base=mylib.perm_data_set data=append_em force; run;

Since the append code will actually be created in the ETL Studio Loader Transformation, I don't care about having extra variables in append_em. I just want to make sure that the variables for mylib.perm_data_set have the correct length, type, label, informat, and format. I tried this: data append_em; set mylib.perm_data_set (obs=0); ---merge code and other stuff here --- run; but when it runs it generates 0 observations in my tests. I think there is a simple solution other than coding an always-false contruct but I can't think of it.

TIA,

Clint Rickards Dual Card Fraud Strategy Manager GE Consumer Finance Shelton, CT (Internal) 8*370-6156 (External) (203) 944-6156


Back to: Top of message | Previous page | Main SAS-L page