<?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 Upload PC Sas Program Infile statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Upload-PC-Sas-Program-Infile-statement/m-p/409808#M100144</link>
    <description>&lt;P&gt;I want upload multiple text files into one mainframe dataset (not partitioned into members). In a previous response, someone said I cannot upload text files. They must be sas files but I know someone in my group who has used proc upload to upload a text file to the mainframe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know if proc upload can support multiple text files in the infile statement?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2017 12:57:03 GMT</pubDate>
    <dc:creator>mmattison</dc:creator>
    <dc:date>2017-11-02T12:57:03Z</dc:date>
    <item>
      <title>Proc Upload PC Sas Program Infile statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Upload-PC-Sas-Program-Infile-statement/m-p/409116#M99934</link>
      <description>&lt;P&gt;My objective is to upload from local drive multiple .txt files to an already allocated mainframe file. My problem is finding correct syntax to point at more than one .txt file in the infile statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My txt files are identified as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;FILENAME&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; exp1 &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;"C:\&amp;amp;filenm.\201601_201601_US0001_us01.txt"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;LRECL&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;375&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;FILENAME&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; exp2 &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;"C:\&amp;amp;filenm.\201602_201602_US0001_us01.txt"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;LRECL&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;375&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;FILENAME&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; exp3 &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;"C:\&amp;amp;filenm.\201603_201603_US0001_us01.txt"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;LRECL&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;375&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;My infile statement (after signon) is below:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; mvsnode=ASYS.FFIC.COM;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;options&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;comamid&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=TCP remote=mvsnode.SPAWNER &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;autosignon&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=YES;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;rsubmit&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; user=_prompt_;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;FILENAME&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; IMP1 &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;"PIR5.GGDATA.PREMIUM.recon6.US01.Q116"&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New"&gt;Proc&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New"&gt;Upload&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt; infile=EXP1, exp2, exp3&amp;nbsp; /*THIS IS NOT WORKING*/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;outfile=IMP1;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;endrsubmit&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;signoff&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; mvsprod.spawner; &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 14:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Upload-PC-Sas-Program-Infile-statement/m-p/409116#M99934</guid>
      <dc:creator>mmattison</dc:creator>
      <dc:date>2017-10-31T14:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Upload PC Sas Program Infile statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Upload-PC-Sas-Program-Infile-statement/m-p/409123#M99937</link>
      <description>&lt;P&gt;Erroneus post deleted. While the &lt;EM&gt;overview&lt;/EM&gt; of the proc upload procedure specifically mentions only "SAS Files", the proc upload &lt;EM&gt;statement documentation&lt;/EM&gt; has the parts for external files.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:57:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Upload-PC-Sas-Program-Infile-statement/m-p/409123#M99937</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-02T12:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Upload PC Sas Program Infile statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Upload-PC-Sas-Program-Infile-statement/m-p/409803#M100141</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/173232"&gt;@mmattison&lt;/a&gt;:&lt;/P&gt;&lt;P&gt;Do you want to concatenate the three files into one file on the mainframe, or do you want to upload the three files&amp;nbsp;as members in&amp;nbsp;a partitioned dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the first case you will have to concatenate the three files first:&lt;/P&gt;&lt;PRE&gt;filename temp temp;
data _null_;
  file temp;
  infile exp1 eof=file2;
  if 0 then do;
    file2: infile exp2 eof=file3;
    end;
  if 0 then do;
    file3: infile exp3 eof=file3;
    end;
  input;
  put _infile_;
run;

rsubmit;
filename imp1 "pir5.etc....";
proc upload infile=temp outfile=imp1;run;
endrsubmit;
  &lt;/PRE&gt;&lt;P&gt;In the other case you will have to run a separate proc upload for each file, as the filenames are too long to be used as member names in a partitioned dataset:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rsubmit;
proc  upload infile=exp1 outfile=imp1(EXP1);run;
proc  upload infile=exp2 outfile=imp1(EXP2);run;
proc  upload infile=exp3 outfile=imp1(EXP3);run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:48:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Upload-PC-Sas-Program-Infile-statement/m-p/409803#M100141</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2017-11-02T12:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Upload PC Sas Program Infile statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Upload-PC-Sas-Program-Infile-statement/m-p/409808#M100144</link>
      <description>&lt;P&gt;I want upload multiple text files into one mainframe dataset (not partitioned into members). In a previous response, someone said I cannot upload text files. They must be sas files but I know someone in my group who has used proc upload to upload a text file to the mainframe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know if proc upload can support multiple text files in the infile statement?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Upload-PC-Sas-Program-Infile-statement/m-p/409808#M100144</guid>
      <dc:creator>mmattison</dc:creator>
      <dc:date>2017-11-02T12:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Upload PC Sas Program Infile statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Upload-PC-Sas-Program-Infile-statement/m-p/409810#M100145</link>
      <description>&lt;P&gt;I corrected my previous post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But look at this (from the proc upload doc):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 class="xis-argument" style="box-sizing: border-box; font-family: AvenirNext, Helvetica, Arial, sans-serif; font-weight: bold; line-height: 1.1; color: #333333; margin-top: 0px; margin-bottom: 0px; font-size: 0.88rem; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;INFILE=&lt;SPAN class="xis-userSuppliedValue" style="box-sizing: border-box; font-style: italic;"&gt;client-file-identifier&lt;/SPAN&gt;&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription" style="box-sizing: border-box; margin-left: 2em; color: #333333; font-family: AvenirNext, Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;
&lt;P class="xis-paraSimpleFirst" style="box-sizing: border-box; margin: 0px;"&gt;specifies the external file that you want to upload to the server from the client.&lt;/P&gt;
&lt;DIV id="n1lm4xigtspcjtn1tu5ktrxf2u5p" class="xis-paraSimple" style="box-sizing: border-box; margin-top: 0.7em;"&gt;If you use the INFILE= option, you must also use the OUTFILE= option.&lt;/DIV&gt;
&lt;DIV id="p14bhpdznkakssn11v3df5vmfbha" class="xis-paraSimple" style="box-sizing: border-box; margin-top: 0.7em;"&gt;&lt;SPAN class="xis-userSuppliedValue" style="box-sizing: border-box; font-style: italic;"&gt;client-file-identifier&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;can be one of the following:&lt;/DIV&gt;
&lt;DIV id="p0nng7zrhonopin1kepv1abz2tol" class="xis-argDescriptionPair" style="box-sizing: border-box; margin-top: 0.7em;"&gt;
&lt;H4 class="xis-argument" style="box-sizing: border-box; font-family: inherit; font-weight: bold; line-height: 1.1; color: #5d6065; margin-top: 0px; margin-bottom: 0px; font-size: 0.88rem;"&gt;&lt;SPAN class="xis-userSuppliedValue" style="box-sizing: border-box; font-style: italic;"&gt;fileref&lt;/SPAN&gt;&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription" style="box-sizing: border-box; margin-left: 2em;"&gt;
&lt;P class="xis-paraSimpleFirst" style="box-sizing: border-box; margin: 0px;"&gt;is used if you have defined a fileref on the client that is associated with a single file. You must define the fileref before specifying the PROC UPLOAD statement.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="p0fzqgi6ciis1ln1d3139iic0cxk" class="xis-argDescriptionPair" style="box-sizing: border-box; margin-top: 0.7em;"&gt;
&lt;H4 class="xis-argument" style="box-sizing: border-box; font-family: inherit; font-weight: bold; line-height: 1.1; color: #5d6065; margin-top: 0px; margin-bottom: 0px; font-size: 0.88rem;"&gt;&lt;SPAN class="xis-userSuppliedValue" style="box-sizing: border-box; font-style: italic;"&gt;fileref(member)&lt;/SPAN&gt;&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription" style="box-sizing: border-box; margin-left: 2em;"&gt;
&lt;P class="xis-paraSimpleFirst" style="box-sizing: border-box; margin: 0px;"&gt;is used if you have defined a fileref on the client that is associated with an aggregate storage location, such as a directory.&lt;/P&gt;
&lt;DIV id="p1srbrpff0ixifn11d329zmfysdd" class="xis-argDescriptionPair" style="box-sizing: border-box; margin-top: 0.7em;"&gt;
&lt;H4 class="xis-argument" style="box-sizing: border-box; font-family: inherit; font-weight: bold; line-height: 1.1; color: #5d6065; margin-top: 0px; margin-bottom: 0px; font-size: 0.88rem;"&gt;&lt;SPAN class="xis-userSuppliedValue" style="box-sizing: border-box; font-style: italic;"&gt;member&lt;/SPAN&gt;&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription" style="box-sizing: border-box; margin-left: 2em;"&gt;
&lt;P class="xis-paraSimpleFirst" style="box-sizing: border-box; margin: 0px;"&gt;specifies one or more files in that aggregate storage location. You can use the asterisk character (*) as a wildcard in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xis-userSuppliedValue" style="box-sizing: border-box; font-style: italic;"&gt;member&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;specification to upload multiple files via a single PROC UPLOAD statement. The * matches zero or more characters.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="p039ml1tj7kl0rn1qnqh8a950bte" class="xis-paraSimple" style="box-sizing: border-box; margin-top: 0.7em;"&gt;You must define the fileref before specifying the PROC UPLOAD statement.&lt;/DIV&gt;
&lt;DIV id="p1k240urlhi5sbn160eh7g2v223b" class="xis-note" style="box-sizing: border-box; margin-top: 0.7em;"&gt;&lt;SPAN class="xis-noteGenText" style="box-sizing: border-box; font-style: normal; font-weight: 600; color: #353535; padding-right: 0.5em;"&gt;Note:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;The transfer of hidden files is not supported when using the (*) wildcard&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you should be able to use wildcards for files in a directory accessed through a filename reference. If that is not possible, you need to do the transfer one file at a time. Aggregate file references are not allowed.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 13:08:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Upload-PC-Sas-Program-Infile-statement/m-p/409810#M100145</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-02T13:08:20Z</dc:date>
    </item>
  </channel>
</rss>

