<?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: Convert SAS transport file with file name containing space/hyphen into SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26488#M6054</link>
    <description>SAS transport file can be renamed by removing any spaces, but the underneath sas name still keeps the previous name. Thanks for the suggestion though.</description>
    <pubDate>Mon, 07 Dec 2009 15:46:32 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-12-07T15:46:32Z</dc:date>
    <item>
      <title>Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26481#M6047</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I have one question to convert SAS transport file into SAS datasets. The SAS transport files are exported from EDC(Ommicom) systme, their names contain space and/or hyphen. I tried to import the transport file into SAS using proc copy. it won't let me do so. The errors said that the SAS file name is not valid. I tried to rename the transport file name, but it did not work.&lt;BR /&gt;
&lt;BR /&gt;
 What happened is that transport file names are the first 8 characters of the form names in the EDC. It would take us several month to rename the forms, update the edit programming and validation.&lt;BR /&gt;
&lt;BR /&gt;
I am very appreciated if anyone has any ideas to share with me at yao_peter2002@yahoo.com.&lt;BR /&gt;
&lt;BR /&gt;
Thank you so much!&lt;BR /&gt;
Peter</description>
      <pubDate>Sun, 06 Dec 2009 01:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26481#M6047</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-06T01:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26482#M6048</link>
      <description>Peter, help out by explaining more about an EDC(Ommicom) system and how it can generate a SAS transport file?  Also, be careful when using the word transport because the SAS system has a transport-format (XPORT) file structure, likely not what you are referring to, I would say.&lt;BR /&gt;
&lt;BR /&gt;
An Internet search on search argument strings "edc", "ommiom" (and also "omnicom possibly), did not yield any useful or revealing information about your challenge.&lt;BR /&gt;
&lt;BR /&gt;
If you have created an "export" file and you are looking to import that data into SAS, possibly using PROC IMPORT, possibly there you are discussing your challenge with having a "blank" in either the file-name itself or possibly a column name within a file.&lt;BR /&gt;
&lt;BR /&gt;
Suggest you clarify what you are attempting to do - import external data into SAS or something else, and maybe also share any SAS error diagnostic logs (COPY and PASTE directly from your SAS session into a forum post/reply).  Also, information about your SAS version, OS environment, and whether SAS is executing local/report from your computer system -- these pieces of information are also very useful for constructive feedback.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
SAS/ACCESS Interface to PC Files: Reference, Supported Data Sources and Environments &lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/61891/HTML/default/a003094743.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acpcref/61891/HTML/default/a003094743.htm&lt;/A&gt;</description>
      <pubDate>Sun, 06 Dec 2009 16:42:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26482#M6048</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-12-06T16:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26483#M6049</link>
      <description>PeterY&lt;BR /&gt;
if the name with blanks is "peter y" try&lt;BR /&gt;
libname retry xport 'your transport format xport library' ;&lt;BR /&gt;
data work.inSAS ;&lt;BR /&gt;
   set retry."peter y"n ;&lt;BR /&gt;
run ;&lt;BR /&gt;
 &lt;BR /&gt;
good luck&lt;BR /&gt;
PeterC</description>
      <pubDate>Sun, 06 Dec 2009 23:35:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26483#M6049</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-12-06T23:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26484#M6050</link>
      <description>Scott,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your reply. EDC is eletronic Data capture system for Clinical trials. The One we are using is one developed by Ommicomm. Its web site is at &lt;A href="http://www.omnicomm.com/1Home/index.asp" target="_blank"&gt;http://www.omnicomm.com/1Home/index.asp&lt;/A&gt;.&lt;BR /&gt;
basically, there are three applications, TrialBuilder is one which is used to develop the Application. Trial Explorer is used to publish the application developed using TrialBuilder. TrailMaster is a web-based application to collect the data on the line. In TrialMaster, there is one function to export data into various formats such as SAS transport files (XPT extension). &lt;BR /&gt;
&lt;BR /&gt;
What I tried to do is to import an transport file (.XPT) exported from TrialMaster into a SAS dataset. What happend is that the name of transport files are the first 8 characters of the forms in Trial Builder. In some cases, there is space in it. That prevents me from importing. I used proc copy. Somehow, proc cimport does not work.&lt;BR /&gt;
&lt;BR /&gt;
SAS version is 9.1.3, OS is Window XP. SAS is running from my local machine.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Peter</description>
      <pubDate>Mon, 07 Dec 2009 02:02:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26484#M6050</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-07T02:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26485#M6051</link>
      <description>PeterC,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your code, but it does not work.&lt;BR /&gt;
&lt;BR /&gt;
The following are the codes and log file. Any further ideas would be appreciated,&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
PeterY&lt;BR /&gt;
&lt;BR /&gt;
libname trans xport 'C:\project\temp\peter\edc\ODI 1_0.xpt';&lt;BR /&gt;
      proc contents data=trans._all_;&lt;BR /&gt;
	  run;&lt;BR /&gt;
      data work.name1;&lt;BR /&gt;
      set trans."ODI 1_0"n;&lt;BR /&gt;
	  run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
log file is&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
28         data work.name1;&lt;BR /&gt;
29         set trans."ODI 1_0"n;&lt;BR /&gt;
ERROR: The value ODI 1_0 is not a valid SAS name.&lt;BR /&gt;
30         run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
WARNING: The data set WORK.NAME1 may be incomplete.  When this step was stopped there were 0&lt;BR /&gt;
         observations and 0 variables.&lt;BR /&gt;
WARNING: Data set WORK.NAME1 was not replaced because this step was stopped.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      cpu time            0.00 seconds</description>
      <pubDate>Mon, 07 Dec 2009 02:12:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26485#M6051</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-07T02:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26486#M6052</link>
      <description>So, suggest you try changing the file-name to specify an underscore instead of a blank.  I don't expect you will be able to use these files as-is with the imbedded blank in the name.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 07 Dec 2009 03:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26486#M6052</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-12-07T03:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26487#M6053</link>
      <description>Have you contacted Ommicomm to find out why their software is generating invalid files?</description>
      <pubDate>Mon, 07 Dec 2009 13:29:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26487#M6053</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-12-07T13:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26488#M6054</link>
      <description>SAS transport file can be renamed by removing any spaces, but the underneath sas name still keeps the previous name. Thanks for the suggestion though.</description>
      <pubDate>Mon, 07 Dec 2009 15:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26488#M6054</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-07T15:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26489#M6055</link>
      <description>Yes, I did.&lt;BR /&gt;
&lt;BR /&gt;
What happened is that we left SAS name as blank on each form, Then exported SAS transported file takes first 8 charcters of the form caption. In some cases, it contains space or hyphen. I am adding the name for each form. But it takes us to redo the validation. I am learning new things since this is the first EDC system we are doing,&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Peter</description>
      <pubDate>Mon, 07 Dec 2009 15:50:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26489#M6055</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-07T15:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26490#M6056</link>
      <description>As was mentioned by Flip, you would be best served by contacting the "source" of the utility used to export your EDC data, specifically with interest on how the blank-character condition is addressed.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 07 Dec 2009 16:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26490#M6056</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-12-07T16:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26491#M6057</link>
      <description>Yes, we found the cause, and are adding the SAS names for each form. The problem will be taken care of. But it takes us days of work for the validation. I am interested if the conversion to SAS is possible in case the file name contains the space.</description>
      <pubDate>Mon, 07 Dec 2009 18:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26491#M6057</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-07T18:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26492#M6058</link>
      <description>since the xport file format is published, you should be able to define where the name is specified internally and replace invalid characters with underscores. since you never put anything into that anyway, it might be ok to set it to a constant like PETERYAO. Keep the original to store an the dataset label of the SAS9 converted form.&lt;BR /&gt;
Just open the xpt file with a binary file viewer to see the internals.&lt;BR /&gt;
good luck&lt;BR /&gt;
PeterC

Message was edited by: Peter.C</description>
      <pubDate>Mon, 07 Dec 2009 18:22:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26492#M6058</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-12-07T18:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26493#M6059</link>
      <description>You should be able to answer your last question by testing the logic yourself - as previously suggested, change the file name and observe the SAS system's behavior as compared to before changing the name.  Sounds straightforward to get a reasonable answer, especially since you have not found other replies who have personal experience with EDC and Omnicom.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 07 Dec 2009 20:23:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26493#M6059</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-12-07T20:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26494#M6060</link>
      <description>I asked no questions, Scott !&lt;BR /&gt;
 but with a sas platform on which to test, (rather than a sony phone) it is easy to demo the method.&lt;BR /&gt;
On my windows vista platform it is easy to demo that at position 409, the binary export format data set holds the memName part of the two part data set name. &lt;BR /&gt;
I'm trialling a single data set export library.[pre]libname xportf xport '.\test1.xpt' ;&lt;BR /&gt;
proc copy in=sashelp out= xportf noclone ;&lt;BR /&gt;
   select shoes ;&lt;BR /&gt;
run ;&lt;BR /&gt;
libname xportf clear ;&lt;BR /&gt;
&lt;BR /&gt;
filename xportf '.\test1.xpt'  lrecl=1024 recfm=f ;&lt;BR /&gt;
* the next line will display the binary (on display manager);&lt;BR /&gt;
proc fslist file= xportf ; run;&lt;BR /&gt;
&lt;BR /&gt;
* now collect the memName and replace it ;&lt;BR /&gt;
data _null_ ;&lt;BR /&gt;
   infile  xportf sharebufferS  ;&lt;BR /&gt;
     file  xportf ;&lt;BR /&gt;
   input @409 memName $char8. @ ;&lt;BR /&gt;
     put @409 'PETERYAO' @ ;&lt;BR /&gt;
     PUT ;&lt;BR /&gt;
   call symputx( 'orig_name', memname );&lt;BR /&gt;
   STOP ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
%put orig_name=(&amp;amp;orig_name);&lt;BR /&gt;
filename xportf clear ;&lt;BR /&gt;
libname xportf xport '.\test1.xpt' ;&lt;BR /&gt;
option validvarname= any ;&lt;BR /&gt;
PROC contents data= XPORTf._all_ ;&lt;BR /&gt;
RUN ;[/pre]&lt;BR /&gt;
&lt;BR /&gt;
That seemed to work for me.&lt;BR /&gt;
I would hope the platform independant nature of the export format will mean that this demo will work for you too.&lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
      <pubDate>Mon, 07 Dec 2009 22:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26494#M6060</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-12-07T22:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26495#M6061</link>
      <description>To Peter.C -- apology please.  My reply was intended for the OP, not yourself.  Sorry for the confusion it caused.&lt;BR /&gt;
&lt;BR /&gt;
Scott  Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 07 Dec 2009 23:14:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26495#M6061</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-12-07T23:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26496#M6062</link>
      <description>no worry, Scott&lt;BR /&gt;
no apology required ... I just wanted clarity ..&lt;BR /&gt;
and to clarify the idea of "fixing" the export format file interrnals created by that (foolish(?) application which did not validate the table name before using it in the export format file (it is so easy to validate/default a SAS5 standard data name ... imho)&lt;BR /&gt;
I was also able to use the method to generate a table with an invalid name and observe SAS92 behaviour ... just ignoring the table.&lt;BR /&gt;
Does it work for you?&lt;BR /&gt;
regards&lt;BR /&gt;
PeterC</description>
      <pubDate>Tue, 08 Dec 2009 00:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26496#M6062</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-12-08T00:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS transport file with file name containing space/hyphen into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26497#M6063</link>
      <description>for the definition of xport format file: internals including the data set name position, see &lt;A href="http://support.sas.com/techsup/technote/ts140.html" target="_blank"&gt;http://support.sas.com/techsup/technote/ts140.html&lt;/A&gt; . Sorry it took me so long to come up with the reference. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
PeterC</description>
      <pubDate>Wed, 09 Dec 2009 12:15:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-transport-file-with-file-name-containing-space/m-p/26497#M6063</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-12-09T12:15:49Z</dc:date>
    </item>
  </channel>
</rss>

