<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: read excel file &amp;amp;create empty dataset. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239733#M55550</link>
    <description>k my question is lil wrong i need a logic to read the info from the excel sheet &amp;amp; read data &amp;amp;then create the dataset how can i do this?&lt;BR /&gt;</description>
    <pubDate>Thu, 17 Dec 2015 10:42:37 GMT</pubDate>
    <dc:creator>RTelang</dc:creator>
    <dc:date>2015-12-17T10:42:37Z</dc:date>
    <item>
      <title>read excel file &amp;create empty dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239727#M55548</link>
      <description>&lt;P&gt;i read a excel file using proc import the file has--&amp;gt;dataset name, variable name, variable type, variable length,I&amp;nbsp;need to read that information and write a code to create empty dataset(Macro). thanks in advance. &amp;nbsp;here is my import code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;proc import datafile="C:\mymacros" ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;out=&amp;amp;out_dat dbms=xls&lt;/P&gt;
&lt;P&gt;replace; &lt;BR /&gt;sheet="&amp;amp;exl_sht"; &lt;BR /&gt;getnames=yes; &lt;BR /&gt;mixed=yes;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 09:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239727#M55548</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-17T09:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: read excel file &amp;create empty dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239730#M55549</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once again, what you are asking for is for someone to create a metadata driven programming environment for you. &amp;nbsp;This is a question and answer forum not a contract work order site. &amp;nbsp;I can give some tips for you to start:&lt;/P&gt;
&lt;P&gt;1) &amp;nbsp;Don't use Excel, it really is just going to cause you lots of problems.&lt;/P&gt;
&lt;P&gt;2) &amp;nbsp;Proc sql is simplest to create empty tables as it doesn't create the one record like a datastep would:&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;create table WANT (AVAR1 char(20),AVAR2 num);&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;3) &amp;nbsp;To generate code you would use one of two methods, either you put the information out to a text file, i.e. from your metadata you would create a text SAS program which then gets included at the end. &amp;nbsp;The other method is by using the call execute function in a data _null_ step to generate the required code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note, that this is an advanced topic.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 10:31:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239730#M55549</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-12-17T10:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: read excel file &amp;create empty dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239733#M55550</link>
      <description>k my question is lil wrong i need a logic to read the info from the excel sheet &amp;amp; read data &amp;amp;then create the dataset how can i do this?&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Dec 2015 10:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239733#M55550</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-17T10:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: read excel file &amp;create empty dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239734#M55551</link>
      <description>my new import code&lt;BR /&gt;&lt;BR /&gt; 56         PROC IMPORT DATAFILE="/folders/myfolders/sasuser.v94/GSK Vx-FORM-SDTM-Metadata-Extension-Form_v2.0.xlsx"&lt;BR /&gt; 57             OUT=WORK.MYEXCEL&lt;BR /&gt; 58             DBMS=XLSX&lt;BR /&gt; 59             REPLACE;&lt;BR /&gt; 60             sheet="Structural_Metadata";&lt;BR /&gt; 61             GETNAMES=YES;&lt;BR /&gt; 62         RUN;&lt;BR /&gt; &lt;BR /&gt; NOTE:    Variable Name Change.  VAR_FORMAT (Optional) -&amp;gt; VAR10                           &lt;BR /&gt; NOTE: The import data set has 29 observations and 13 variables.&lt;BR /&gt; NOTE: WORK.MYEXCEL data set was successfully created.&lt;BR /&gt; NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;       real time           0.15 seconds&lt;BR /&gt;       cpu time            0.15 seconds&lt;BR /&gt;&lt;BR /&gt;can i use atrib &amp;amp; read the info &amp;amp; create a empty dataset.. how would i go with the logic..</description>
      <pubDate>Thu, 17 Dec 2015 11:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239734#M55551</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-17T11:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: read excel file &amp;create empty dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239744#M55552</link>
      <description>&lt;P&gt;I don't know the structure of your metadata, but for an example I'll use &lt;A href="http://blogs.sas.com/content/sasdummy/2012/08/14/proc-contents-into-excel/" target="_self"&gt;what&amp;nbsp;SAS Enterprise Guide can give you when you copy the column attributes&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example of CLASSFIT metadata in DATA step form.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* A data step that defines some metadata */
data meta;
length
 dsname $ 32 /* data set name */
 name $ 32 /* var name */
 type $ 1  /* var type */
 length 8  
 format $ 15 
 informat $ 15
 label $ 255;
infile datalines dsd delimiter=',';
input dsname name type length format informat label;
datalines;
classfit,Name,Character,8,,,
classfit,Sex,Character,1,,,
classfit,Age,Numeric,8,,,
classfit,Height,Numeric,8,,,
classfit,Weight,Numeric,8,,,
classfit,predict,Numeric,8,,,Predicted Value of Weight
classfit,lowermean,Numeric,8,,,Lower Bound of 95% C.I. for Mean
classfit,uppermean,Numeric,8,,,Upper Bound of 95% C.I. for Mean
classfit,lower,Numeric,8,,,Lower Bound of 95% C.I.(Individual Pred)
classfit,upper,Numeric,8,,,Upper Bound of 95% C.I.(Individual Pred)
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Okay, so how to read that in and create an empty data set with just the columns in place? &amp;nbsp;There are a bunch of different approaches. &amp;nbsp;My method here is to use DATA step to read the metadata, then output a file with a&amp;nbsp;&lt;STRONG&gt;new&lt;/STRONG&gt; DATA step that uses the&amp;nbsp;&lt;STRONG&gt;ATTRIB&lt;/STRONG&gt; statement to build up the definitions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Create a temp file to hold a SAS program */
filename datadef temp;

data _null_;
    file datadef;
    set meta nobs=last;
    if _N_=1 then
        put "DATA " dsname "; ATTRIB ";
    put  name " LENGTH= ";
    if type='C' then
        put "$" length;
    else put length;
    if format^= '' then
        put " FORMAT=" format;
    if informat^= '' then
        put " INFORMAT=" informat;
    /* if the LABEL contains quote chars, going to have to escape those */
    put " LABEL='" label "'";
    if _N_ = last then
        put "; STOP;RUN;";
run;

/* INCLUDE and run the program */
%include datadef;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The program that is created and run for SASHELP.CLASSFIT (you don't see the code) looks like this. &amp;nbsp;Formatting isn't lovely, but SAS appreciates only that the syntax is correct, not that your code is human-readable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA classfit ; ATTRIB 
Name  LENGTH= 
$8
LABEL='  '
Sex  LENGTH= 
$1
LABEL='  '
Age  LENGTH= 
8
LABEL='  '
Height  LENGTH= 
8
LABEL='  '
Weight  LENGTH= 
8
LABEL='  '
predict  LENGTH= 
8
LABEL='Predicted Value of Weight '
lowermean  LENGTH= 
8
LABEL='Lower Bound of 95% C.I. for Mean '
uppermean  LENGTH= 
8
LABEL='Upper Bound of 95% C.I. for Mean '
lower  LENGTH= 
8
LABEL='Lower Bound of 95% C.I.(Individual Pred) '
upper  LENGTH= 
8
LABEL='Upper Bound of 95% C.I.(Individual Pred) '
; STOP;RUN;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Dec 2015 13:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239744#M55552</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-12-17T13:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: read excel file &amp;create empty dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239763#M55554</link>
      <description>Unfortunately this outputs to the log, but you may be able to capture it somehow:&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;describe table sashelp.class;&lt;BR /&gt;quit;</description>
      <pubDate>Thu, 17 Dec 2015 15:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239763#M55554</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-17T15:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: read excel file &amp;create empty dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239957#M55562</link>
      <description>@ chris i am getting error at file-name &amp;amp; %include statement---&amp;gt;physical file does not exist in my code....</description>
      <pubDate>Fri, 18 Dec 2015 10:44:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239957#M55562</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-18T10:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: read excel file &amp;create empty dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239961#M55564</link>
      <description>I get this error messege......&lt;BR /&gt; WARNING: Physical file does not exist, /opt/sasinside/SASConfig/Lev1/SASApp/myexcel.sas.&lt;BR /&gt; ERROR: Cannot open %INCLUDE file MYEXCEL.</description>
      <pubDate>Fri, 18 Dec 2015 10:48:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239961#M55564</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-18T10:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: read excel file &amp;create empty dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239970#M55568</link>
      <description>You'll have to share your entire log in order to see what's going on.</description>
      <pubDate>Fri, 18 Dec 2015 11:47:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239970#M55568</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-12-18T11:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: read excel file &amp;create empty dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239976#M55570</link>
      <description>&lt;P&gt;Don't forget to put the TEMP keyword on the filename statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; filename myexcel &lt;STRONG&gt;TEMP&lt;/STRONG&gt;;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The TEMP tells SAS to create a temp file in the WORK area; you don't need to worry about the physical file name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And include the FILE statement in your DATA step to tell the PUT statement to direct output to the file. &amp;nbsp;Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data _null_;
&amp;nbsp; &amp;nbsp;file MYEXCEL;
&amp;nbsp; &amp;nbsp;/* remainder of program */
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 12:41:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/239976#M55570</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-12-18T12:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: read excel file &amp;create empty dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/240773#M55640</link>
      <description>here is my entire log---&amp;gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt; 55         &lt;BR /&gt; 56         proc import datafile="/folders/myfolders/sasuser.v94/GSK Vx-FORM-SDTM-Metadata-Extension-Form_v2.0.xlsx"&lt;BR /&gt; 57         out=WORK.MYEXCEL&lt;BR /&gt; 58         dbms=XLSX&lt;BR /&gt; 59         replace;&lt;BR /&gt; 60         sheet="Structural_Metadata";&lt;BR /&gt; 61         getnames=YES;&lt;BR /&gt; 62         run;&lt;BR /&gt; &lt;BR /&gt; NOTE:    Variable Name Change.  VAR_FORMAT (Optional) -&amp;gt; VAR10                           &lt;BR /&gt; NOTE: The import data set has 29 observations and 13 variables.&lt;BR /&gt; NOTE: WORK.MYEXCEL data set was successfully created.&lt;BR /&gt; NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;       real time           0.11 seconds&lt;BR /&gt;       cpu time            0.11 seconds&lt;BR /&gt;       &lt;BR /&gt; &lt;BR /&gt; 63         &lt;BR /&gt; 64         PROC PRINT DATA=WORK.MYEXCEL;&lt;BR /&gt; 65         RUN;&lt;BR /&gt; &lt;BR /&gt; NOTE: There were 29 observations read from the data set WORK.MYEXCEL.&lt;BR /&gt; NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;       real time           0.58 seconds&lt;BR /&gt;       cpu time            0.57 seconds&lt;BR /&gt;       &lt;BR /&gt; &lt;BR /&gt; 66         filename myexcel temp;&lt;BR /&gt; 67         data _null_;&lt;BR /&gt; 68         file myexcel;&lt;BR /&gt; &lt;BR /&gt; NOTE: The file MYEXCEL is:&lt;BR /&gt;       Filename=/tmp/SAS_workFA0E00000759_localhost.localdomain/#LN00179,&lt;BR /&gt;       Owner Name=sasdemo,Group Name=sas,&lt;BR /&gt;       Access Permission=-rw-rw-r--,&lt;BR /&gt;       Last Modified=24Dec2015:12:08:43&lt;BR /&gt; &lt;BR /&gt; NOTE: 0 records were written to the file MYEXCEL.&lt;BR /&gt; NOTE: DATA statement used (Total process time):&lt;BR /&gt;       real time           0.07 seconds&lt;BR /&gt;       cpu time            0.07 seconds&lt;BR /&gt;       &lt;BR /&gt; 69         data _null_;&lt;BR /&gt; &lt;BR /&gt; 70         set work.myexcel;&lt;BR /&gt; 71         by dataset_name;&lt;BR /&gt; 72         length statement_str $1000.;&lt;BR /&gt; 73         &lt;BR /&gt; 74         if first.dataset_name then do;&lt;BR /&gt; 75         put 'data ' dataset_name;&lt;BR /&gt; 76              end;&lt;BR /&gt; 77         &lt;BR /&gt; 78         statement_str = 'ATTRIB '|| var_name||' label = "'|| trim(var_label) ||'"';&lt;BR /&gt; 79         &lt;BR /&gt; 80         if trim(var_format) ne " " then do;&lt;BR /&gt; 81         put '    ' statement_str ' format = ' var_format ';';&lt;BR /&gt; 82              end;&lt;BR /&gt; 83             else do;&lt;BR /&gt; 84         put '    ' statement_str ';';&lt;BR /&gt; 85             end;&lt;BR /&gt; 86         &lt;BR /&gt; 87         if last.dataset_name then do;&lt;BR /&gt; 88            put 'run;';&lt;BR /&gt; 89              end;&lt;BR /&gt; 90         run;&lt;BR /&gt; &lt;BR /&gt; NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;BR /&gt;       80:9   &lt;BR /&gt; NOTE: Variable var_format is uninitialized.&lt;BR /&gt; data DM&lt;BR /&gt;     ATTRIB STUDYID  label = "Study Identifier"  format = . ;&lt;BR /&gt;     ATTRIB DOMAIN   label = "Domain Abbreviation"  format = . ;&lt;BR /&gt;     ATTRIB USUBJID  label = "Unique Subject Identifier"  format = . ;&lt;BR /&gt;     ATTRIB SUBJID   label = "Subject Identifier for the Study"  format = . ;&lt;BR /&gt;     ATTRIB SITEID   label = "Study Site Identifier"  format = . ;&lt;BR /&gt;     ATTRIB RFSTDTC  label = "Subject Reference Start Date/Time"  format = . ;&lt;BR /&gt;     ATTRIB RFENDTC  label = "Subject Reference End Date/Time"  format = . ;&lt;BR /&gt;     ATTRIB RFXSTDTC label = "Date/Time of First Study Treatment"  format = . ;&lt;BR /&gt;     ATTRIB RFXENDTC label = "Date/Time of Last Study Treatment"  format = . ;&lt;BR /&gt;     ATTRIB RFICDTC  label = "Date/Time of Informed Consent"  format = . ;&lt;BR /&gt;     ATTRIB RFPENDTC label = "Date/Time of End of Participation"  format = . ;&lt;BR /&gt;     ATTRIB DTHDTC   label = "Date/Time of Death"  format = . ;&lt;BR /&gt;     ATTRIB DTHFL    label = "Subject Death Flag"  format = . ;&lt;BR /&gt;     ATTRIB INVID    label = "Investigator Identifier"  format = . ;&lt;BR /&gt;     ATTRIB INVNAM   label = "Investigator Name"  format = . ;&lt;BR /&gt;     ATTRIB BRTHDTC  label = "Date/Time of Birth"  format = . ;&lt;BR /&gt;     ATTRIB AGE      label = "Age"  format = . ;&lt;BR /&gt;     ATTRIB AGEU     label = "Age Units"  format = . ;&lt;BR /&gt;     ATTRIB SEX      label = "Sex"  format = . ;&lt;BR /&gt;     ATTRIB RACE     label = "Race"  format = . ;&lt;BR /&gt;     ATTRIB ETHNIC   label = "Ethnicity"  format = . ;&lt;BR /&gt;     ATTRIB ARMCD    label = "Planned Arm Code"  format = . ;&lt;BR /&gt;     ATTRIB ARM      label = "Description of Planned Arm"  format = . ;&lt;BR /&gt;     ATTRIB ACTARMCD label = "Actual Arm Code"  format = . ;&lt;BR /&gt;     ATTRIB ACTARM   label = "Description of Actual Arm"  format = . ;&lt;BR /&gt;     ATTRIB COUNTRY  label = "Country"  format = . ;&lt;BR /&gt;     ATTRIB DMDTC    label = "Date/Time of Collection"  format = . ;&lt;BR /&gt;     ATTRIB DMDY     label = "Study Day of Collection"  format = . ;&lt;BR /&gt;     ATTRIB RACEOTH  label = "Race, other"  format = . ;&lt;BR /&gt; run;&lt;BR /&gt; NOTE: There were 29 observations read from the data set WORK.MYEXCEL.&lt;BR /&gt; NOTE: DATA statement used (Total process time):&lt;BR /&gt;       real time           0.06 seconds&lt;BR /&gt;       cpu time            0.06 seconds&lt;BR /&gt;       &lt;BR /&gt; &lt;BR /&gt; 91         ;&lt;BR /&gt; 92         %include myexcel;&lt;BR /&gt; 93         &lt;BR /&gt; 94         &lt;BR /&gt; 95         &lt;BR /&gt; 96         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt; 108</description>
      <pubDate>Thu, 24 Dec 2015 06:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/240773#M55640</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-24T06:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: read excel file &amp;create empty dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/240774#M55641</link>
      <description>&amp;amp; 1 question can't i not use temp &amp;amp; create a physical file in diff location...</description>
      <pubDate>Thu, 24 Dec 2015 06:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/240774#M55641</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-24T06:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: read excel file &amp;create empty dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/240780#M55644</link>
      <description>&lt;P&gt;You havea fair few amount of problems in that code, how are you testing it? &amp;nbsp;Some pointers:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;NOTE: Variable Name Change. VAR_FORMAT (Optional) -&amp;gt; VAR10 &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is telling you that the variable VAR_FORMAT was changed to VAR10, hence why you get missings for format later on. &amp;nbsp;In my opionion, Excel is NOT a metadata tool and the use of it for such a thing will result in so many problems it is untrue, much like the one you have found above. &amp;nbsp;As I previously mentioned, get a contractor who can advise on a proper metadata repository/driven programming rather than trying to piece it together with things like Excel which will just break everytime you riun it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;NOTE: 0 records were written to the file MYEXCEL.What is this block of code supposed to be doing, either there is part of the program missing, or something is wrong. &amp;nbsp;You have a filename (66), data _null_ (67), and file (68), however there is no further code, hence the file created is empty. &amp;nbsp;Where are all the put statements and the ending run;?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;NOTE: Variable var_format is uninitialized.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This again is telling you that var_format does not exist in your dataset, see the first comment about reading in from Excel.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;75 put 'data ' dataset_name;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is incorrect. &amp;nbsp;It needs to finish with a semicolon:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;75 put cat('data ',strip(dataset_name),';');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;92 %include myexcel;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This isn't doing anything as the file is empty. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would suggest you firstly try to understand what Chris has suggested you try, basically from your code you are generating another piece of code which finally gets included, this is what the basis of metadata driven programming is. &amp;nbsp;Once you understand the concept, then go through and test your code, step by step, look at the datasets created, the files created, you will see straight away what the problems are.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 09:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/240780#M55644</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-12-24T09:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: read excel file &amp;create empty dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/240826#M55652</link>
      <description>Theres also the LIKE statement in proc sql. &lt;BR /&gt;&lt;BR /&gt;Proc sql;&lt;BR /&gt;Create table want like sashelp.class;&lt;BR /&gt;Quit;</description>
      <pubDate>Thu, 24 Dec 2015 20:19:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/240826#M55652</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-24T20:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: read excel file &amp;create empty dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/240827#M55653</link>
      <description>&lt;A href="http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/viewer.htm#a001384767.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/viewer.htm#a001384767.htm&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Dec 2015 20:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-excel-file-amp-create-empty-dataset/m-p/240827#M55653</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-24T20:21:37Z</dc:date>
    </item>
  </channel>
</rss>

