<?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: .stc CIMPORT code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/stc-CIMPORT-code/m-p/955028#M372986</link>
    <description>&lt;P&gt;I am not sure what you mean by&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;But the variables are not populating in the table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did the PROC CIMPORT step run or not?&lt;/P&gt;
&lt;P&gt;How many datasets did it find in the .stc file?&lt;/P&gt;
&lt;P&gt;What where their names?&lt;/P&gt;
&lt;P&gt;What variables did they contain?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you mean by the word "table"?&amp;nbsp; Do you mean a SAS dataset? Or did you run a program to produce a report? If the later what code did you try to run and what information where you trying to report on?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jan 2025 16:22:49 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2025-01-03T16:22:49Z</dc:date>
    <item>
      <title>.stc CIMPORT code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stc-CIMPORT-code/m-p/955018#M372985</link>
      <description>&lt;P&gt;Hi! I'm working with the SAMHSA TEDS data set using CIMPORT. I used the recommended infile code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc cimport&lt;/P&gt;&lt;P&gt;infile= "C: \......\TEDS_2022.stc"lib=WORK;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;But the variables are not populating in the table. I imported the coded variable library they provided but it's qualitative and I would rather work with the raw quanitative data that comes with the original imported file. You can get it through the .csv but it's so large I fear it may be incomplete. Is there a recommeded code I can use after the import to make sure the variables are recogized? I tried the libname= my lib and tranfile steps but they don't seem to work with .stc files. Any help is appreciated.&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 15:32:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stc-CIMPORT-code/m-p/955018#M372985</guid>
      <dc:creator>hkirk</dc:creator>
      <dc:date>2025-01-03T15:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: .stc CIMPORT code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stc-CIMPORT-code/m-p/955028#M372986</link>
      <description>&lt;P&gt;I am not sure what you mean by&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;But the variables are not populating in the table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did the PROC CIMPORT step run or not?&lt;/P&gt;
&lt;P&gt;How many datasets did it find in the .stc file?&lt;/P&gt;
&lt;P&gt;What where their names?&lt;/P&gt;
&lt;P&gt;What variables did they contain?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you mean by the word "table"?&amp;nbsp; Do you mean a SAS dataset? Or did you run a program to produce a report? If the later what code did you try to run and what information where you trying to report on?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 16:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stc-CIMPORT-code/m-p/955028#M372986</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-01-03T16:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: .stc CIMPORT code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stc-CIMPORT-code/m-p/955030#M372987</link>
      <description>&lt;P&gt;It looks like the PROC CIMPORT STEP ran because it created a result viewtable in the work folder in the library. However when I try to open it, I get an error message saying it "cannot be opened". I then ran a PROC CONTENTS and it generated the list of variable names and values no problem. But won't populate the table in the results. If I import the library code, it populates the table in the viewtable, but it's coded to convert all the numeric data into qualitative data, I would rather it stay quant. It's just easier to program around and manipulate. This is data collected from a government survey with categorical and numeric variables. I haven't been able to find a lot out there on working with .sct files.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 16:31:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stc-CIMPORT-code/m-p/955030#M372987</guid>
      <dc:creator>hkirk</dc:creator>
      <dc:date>2025-01-03T16:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: .stc CIMPORT code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stc-CIMPORT-code/m-p/955036#M372988</link>
      <description>&lt;P&gt;If you are talking about this page&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.samhsa.gov/data/data-we-collect/teds/datafiles" target="_blank" rel="noopener"&gt;https://www.samhsa.gov/data/data-we-collect/teds/datafiles&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(or perhaps some other year done in the same style) then I suspect that this issue is that &lt;STRONG&gt;you did not define the FORMATS that it has attached to the variables.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They included a .SAS file with the format definitions in the ZIP file.&lt;/P&gt;
&lt;P&gt;Either set the system option NOFMTERR so that the Viewtable widget can open the dataset and SAS code can open the dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nofmterr ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or remove the formats from the variables.&amp;nbsp; Either in an individual step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=TEDSA_PUF_2022(obs=3) width=min;
  format _all_ ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or in a DATA step or PROC DATASETS step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 17:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stc-CIMPORT-code/m-p/955036#M372988</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-01-03T17:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: .stc CIMPORT code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stc-CIMPORT-code/m-p/955037#M372989</link>
      <description>&lt;P&gt;BRILLIANT! Thank you so much! I knew I was missing something obvious. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 16:46:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stc-CIMPORT-code/m-p/955037#M372989</guid>
      <dc:creator>hkirk</dc:creator>
      <dc:date>2025-01-03T16:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: .stc CIMPORT code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stc-CIMPORT-code/m-p/955100#M373009</link>
      <description>Adding the following options before proc cimport:&lt;BR /&gt;&lt;BR /&gt;option validvarname=any validmemname=extend nofmterr;&lt;BR /&gt;proc cimport&lt;BR /&gt;.......</description>
      <pubDate>Sat, 04 Jan 2025 07:47:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stc-CIMPORT-code/m-p/955100#M373009</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-01-04T07:47:15Z</dc:date>
    </item>
  </channel>
</rss>

