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 (January 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 9 Jan 2002 05:44:14 -0500
Reply-To:   Philip Whittall <philip.whittall@UNILEVER.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Philip Whittall <philip.whittall@UNILEVER.COM>
Subject:   Re: transfer/copy variable labels from one dataset to another?

Dear List,

You do have the option to get SQL to put the label statement you need into a Macro and eliminate any intervening data sets/files.

PROC SQL NOPRINT; SELECT NAME||'="'||TRIM(LABEL)||'"' INTO :LABELS SEPARATED BY ' ' FROM DICTIONARY.COLUMNS WHERE LIBNAME='XXXX' AND MEMNAME='A' ; PROC DATASETS NOLIST LIB=ZZZZ; MODIFY B; LABEL &LABELS; RUN; QUIT;

A similar technique will let you transfer Formats and Informats too,

Philip


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