<?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: PROC COPY in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY/m-p/52717#M14508</link>
    <description>and the variable is OTH1A, length=250, format=$250. informat=$250.</description>
    <pubDate>Thu, 09 Jul 2009 13:11:59 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-07-09T13:11:59Z</dc:date>
    <item>
      <title>PROC COPY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY/m-p/52714#M14505</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm using PROC COPY to convert some SAS datasets to .xpt files .&lt;BR /&gt;
I'm getting an error message:&lt;BR /&gt;
The character variable xxxxx has too long a value for the XXXXX library.&lt;BR /&gt;
&lt;BR /&gt;
Any idea how this could be resolved?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance...</description>
      <pubDate>Thu, 09 Jul 2009 09:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY/m-p/52714#M14505</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-09T09:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY/m-p/52715#M14506</link>
      <description>What is the SAS version and tell us more about the SAS CHARACTER variable in question (use the SAS CONTENTS procedure for variable info)?  Also, have you looked at the SAS documentation on TRANSPORT file limitations?  It would be best to paste the SAS log information exactly as it is generated -- also searching the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website may provide you information about the limits with using a TRANSPORT file.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 09 Jul 2009 13:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY/m-p/52715#M14506</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-07-09T13:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY/m-p/52716#M14507</link>
      <description>Dear Scott,&lt;BR /&gt;
&lt;BR /&gt;
here's the program we're using...&lt;BR /&gt;
&lt;BR /&gt;
%MACRO _export(inpath=,&lt;BR /&gt;
               outpath=,&lt;BR /&gt;
               check_report=no);&lt;BR /&gt;
&lt;BR /&gt;
	*----------------------------------------------------------;&lt;BR /&gt;
	* Libname setup&lt;BR /&gt;
	*----------------------------------------------------------;&lt;BR /&gt;
	LIBNAME INPATH  "&amp;amp;inpath";&lt;BR /&gt;
	OPTIONS nofmterr;&lt;BR /&gt;
&lt;BR /&gt;
	*----------------------------------------------------------;&lt;BR /&gt;
	* 1- Count up members&lt;BR /&gt;
	*----------------------------------------------------------;&lt;BR /&gt;
	PROC SQL NOPRINT;&lt;BR /&gt;
	  *----A: Count # of library members;&lt;BR /&gt;
	  SELECT COUNT(*) INTO :numdsets&lt;BR /&gt;
	  FROM dictionary.tables&lt;BR /&gt;
	  WHERE LIBNAME="INPATH";&lt;BR /&gt;
	QUIT;&lt;BR /&gt;
&lt;BR /&gt;
	%IF &amp;amp;numdsets&amp;gt;0 %THEN %DO; &lt;BR /&gt;
    	PROC SQL NOPRINT;&lt;BR /&gt;
    	  *----B: Count # of library members;&lt;BR /&gt;
    	  SELECT DISTINCT (memname) INTO :mem1-:mem%TRIM(%LEFT(&amp;amp;numdsets)) &lt;BR /&gt;
          FROM dictionary.tables&lt;BR /&gt;
    	  WHERE LIBNAME="INPATH";&lt;BR /&gt;
    	QUIT;&lt;BR /&gt;
&lt;BR /&gt;
    	*----------------------------------------------------------;&lt;BR /&gt;
    	* 2- Transport individual datasets&lt;BR /&gt;
    	*----------------------------------------------------------;&lt;BR /&gt;
    	%DO i=1 %TO &amp;amp;numdsets;&lt;BR /&gt;
    		LIBNAME outxpt SASV5XPT "&amp;amp;outpath/%LOWCASE(&amp;amp;&amp;amp;mem&amp;amp;i).xpt" LRECL=320;&lt;BR /&gt;
&lt;BR /&gt;
    		*----A: Create Transport Files from datasets;&lt;BR /&gt;
    		PROC COPY IN=inpath OUT=outxpt;&lt;BR /&gt;
    		  SELECT &amp;amp;&amp;amp;mem&amp;amp;i;&lt;BR /&gt;
    		RUN;&lt;BR /&gt;
&lt;BR /&gt;
    	    %IF %UPCASE(&amp;amp;check_report)=YES %THEN %DO; &lt;BR /&gt;
        		*----B - Optional: CHECKING: RE-CREATE datasets from Transport Files;&lt;BR /&gt;
        		 PROC COPY IN=outxpt OUT=work;&lt;BR /&gt;
        		   SELECT &amp;amp;&amp;amp;mem&amp;amp;i;&lt;BR /&gt;
        		 RUN;&lt;BR /&gt;
        &lt;BR /&gt;
        		ODS HTML FILE="&amp;amp;outpath/%LOWCASE(&amp;amp;&amp;amp;mem&amp;amp;i)_compare.html";&lt;BR /&gt;
        		PROC COMPARE DATA=inpath.&amp;amp;&amp;amp;mem&amp;amp;i COMPARE=work.&amp;amp;&amp;amp;mem&amp;amp;i;&lt;BR /&gt;
        		RUN;&lt;BR /&gt;
        		ODS HTML CLOSE;&lt;BR /&gt;
    	    %END;&lt;BR /&gt;
    		LIBNAME outxpt;&lt;BR /&gt;
    	%END;&lt;BR /&gt;
    %END;&lt;BR /&gt;
    %ELSE %PUT &lt;BR /&gt;
    ---------------------------------------------------------------- &lt;BR /&gt;
    ---------------------------------------------------------------- &lt;BR /&gt;
     There is no dataset to transport in &amp;amp;inpath directory              &lt;BR /&gt;
    ---------------------------------------------------------------- &lt;BR /&gt;
    ----------------------------------------------------------------;&lt;BR /&gt;
%MEND _export;&lt;BR /&gt;
&lt;BR /&gt;
%_export(inpath =/vob/CICL670A/CICL670AUS02/report/import/data_s,&lt;BR /&gt;
         outpath=/vob/CICL670A/pool/pool_904/report/export/pool_904/raw,&lt;BR /&gt;
            check_report=yes);&lt;BR /&gt;
&lt;BR /&gt;
We're currently using SAS8.2 version..&lt;BR /&gt;
&lt;BR /&gt;
and here's the log:&lt;BR /&gt;
&lt;BR /&gt;
ERROR: The character variable OTH1A has too long a value for the OUTXPT library.&lt;BR /&gt;
ERROR: File OUTXPT.BCL.DATA has not been saved because copy could not be completed&lt;BR /&gt;
&lt;BR /&gt;
Thank you</description>
      <pubDate>Thu, 09 Jul 2009 13:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY/m-p/52716#M14507</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-09T13:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY/m-p/52717#M14508</link>
      <description>and the variable is OTH1A, length=250, format=$250. informat=$250.</description>
      <pubDate>Thu, 09 Jul 2009 13:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY/m-p/52717#M14508</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-09T13:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY/m-p/52718#M14509</link>
      <description>Your LIBNAME statement has a hardcoded "engine" of SASV5XPT, which is a SAS Version 5 XPORT format.&lt;BR /&gt;
&lt;BR /&gt;
I would say that it's time to review and update your SAS application for software-version currency compliance, as in get updated to a current, supported SAS software version level.&lt;BR /&gt;
&lt;BR /&gt;
In the meantime, you will want to search the SAS support website for pre-historic information about the SAS engine you are using and limitations.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 09 Jul 2009 13:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY/m-p/52718#M14509</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-07-09T13:17:55Z</dc:date>
    </item>
  </channel>
</rss>

