<?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: ODS CSV to mainframe tape? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-to-mainframe-tape/m-p/642267#M23971</link>
    <description>&lt;P&gt;It has been a long time since I worked with tape.&lt;/P&gt;
&lt;P&gt;A couple of suggestions:&lt;/P&gt;
&lt;P&gt;1) subset the data before generating the output&lt;/P&gt;
&lt;P&gt;2) You might try Proc Export to the tape instead.&lt;/P&gt;
&lt;P&gt;3) Has anyone actually mounted a tape to the tape drive for writing? That was always a hold up, someone actually had to mount tapes for reading/writing. So jobs often got queued until the operator had time to mount them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest talking to your admins about why you don't have enough disk space.&amp;nbsp; When you need the data later you will have to make sure the proper tape is available and reading it may take a long time (relatively).&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2020 14:52:06 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-04-23T14:52:06Z</dc:date>
    <item>
      <title>ODS CSV to mainframe tape?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-to-mainframe-tape/m-p/642260#M23967</link>
      <description>&lt;P&gt;I'm trying to create a csv file from query results and it's too big for disk. Is it possible to write to mainframe tape? If so, how?&lt;/P&gt;
&lt;P&gt;This is my pathetic attempt from all information I can find so far:&lt;BR /&gt;ODS LISTING CLOSE; &lt;BR /&gt;FILENAME MYFILE "SYS2.NFCPLEX.TAPE" VOL=504977 UNIT=TAPE LABEL=(1,SL);&lt;BR /&gt;ODS CSV BODY=MYFILE RS=NONE; &lt;BR /&gt;PROC SQL; &lt;BR /&gt;SELECT ACCOUNT, &lt;BR /&gt;DSNAME, &lt;BR /&gt;CRETM, &lt;BR /&gt;DDSCSIZE, &lt;BR /&gt;DDSUSIZE, &lt;BR /&gt;DSEXPDT, &lt;BR /&gt;DSVOLSER &lt;BR /&gt;FROM PDB.CTLTDSN &lt;BR /&gt;WHERE DACTIVE='A' OR TODAY()&amp;lt;INTNX('DAYS',DSEXPDT,120); &lt;BR /&gt;QUIT; &lt;BR /&gt;ODS CSV CLOSE; &lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 14:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-to-mainframe-tape/m-p/642260#M23967</guid>
      <dc:creator>G_I_Jeff</dc:creator>
      <dc:date>2020-04-23T14:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: ODS CSV to mainframe tape?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-to-mainframe-tape/m-p/642266#M23970</link>
      <description>&lt;P&gt;Don't use ods csv, use a data step, or at least proc export with dbms=csv.&lt;/P&gt;
&lt;P&gt;If you have trouble with the code, please post the log. Use the &amp;lt;/&amp;gt; button for posting logs.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 14:47:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-to-mainframe-tape/m-p/642266#M23970</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-23T14:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: ODS CSV to mainframe tape?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-to-mainframe-tape/m-p/642267#M23971</link>
      <description>&lt;P&gt;It has been a long time since I worked with tape.&lt;/P&gt;
&lt;P&gt;A couple of suggestions:&lt;/P&gt;
&lt;P&gt;1) subset the data before generating the output&lt;/P&gt;
&lt;P&gt;2) You might try Proc Export to the tape instead.&lt;/P&gt;
&lt;P&gt;3) Has anyone actually mounted a tape to the tape drive for writing? That was always a hold up, someone actually had to mount tapes for reading/writing. So jobs often got queued until the operator had time to mount them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest talking to your admins about why you don't have enough disk space.&amp;nbsp; When you need the data later you will have to make sure the proper tape is available and reading it may take a long time (relatively).&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 14:52:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-to-mainframe-tape/m-p/642267#M23971</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-23T14:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: ODS CSV to mainframe tape?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-to-mainframe-tape/m-p/642269#M23973</link>
      <description>&lt;P&gt;Proc export is not available on z/OS. So data step, ODS logic, either way I am still dealing with writing to tape.&lt;/P&gt;
&lt;PRE&gt;1          ODS LISTING CLOSE;                                                   
2          FILENAME MYFILE "SYS2.NFCPLEX.TAPE" VOL=504977 UNIT=TAPE LABEL=(1,SL)
                                                   ______                       
                                                   ______                       
                                                   ______                       
                                                   24                           
                                                   24                           
                                                   24                           
ERROR: ERROR IN THE FILENAME STATEMENT.                                         
ERROR: ERROR IN THE FILENAME STATEMENT.                                         
ERROR: ERROR IN THE FILENAME STATEMENT.                                         
ERROR 24-2: INVALID VALUE FOR THE VOL OPTION.                                   
ERROR 24-2: INVALID VALUE FOR THE VOL OPTION.                                   
ERROR 24-2: INVALID VALUE FOR THE VOL OPTION.                                   
                                                                                
3          ODS CSV BODY=MYFILE RS=NONE;                                         
NOTE: WRITING CSV BODY FILE: MYFILE                                             
ERROR: NO LOGICAL ASSIGN FOR FILENAME MYFILE.                                   
ERROR: NO LOGICAL ASSIGN FOR FILENAME MYFILE.                                   
ERROR: NO LOGICAL ASSIGN FOR FILENAME MYFILE.                                   
WARNING: NO BODY FILE. CSV OUTPUT WILL NOT BE CREATED.                          &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 14:54:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-to-mainframe-tape/m-p/642269#M23973</guid>
      <dc:creator>G_I_Jeff</dc:creator>
      <dc:date>2020-04-23T14:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: ODS CSV to mainframe tape?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-to-mainframe-tape/m-p/642271#M23974</link>
      <description>&lt;P&gt;It has been a long time. Physical tape does not exist anymore. We are all virtual now, which makes it harder tricking z/OS.&lt;/P&gt;
&lt;P&gt;1. I'm not sure what subsetting data is. I'm not a very strong SAS programmer. I'll try and look it up.&lt;/P&gt;
&lt;P&gt;2. PROC EXPORT does not exist on the mainframe. Unless I'm missing something.&lt;/P&gt;
&lt;P&gt;3. There is no physical tape so no wait time, except for maybe a unit.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 14:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-to-mainframe-tape/m-p/642271#M23974</guid>
      <dc:creator>G_I_Jeff</dc:creator>
      <dc:date>2020-04-23T14:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: ODS CSV to mainframe tape?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-to-mainframe-tape/m-p/642335#M23977</link>
      <description>&lt;P&gt;It complains about the volume designator, so you should check with your z/OS admins about that.&lt;/P&gt;
&lt;P&gt;I strongly advise to use a data step instead of ods csv; I have participated in a thread here on the communities where ods csv with a proc print was outperformed by a data step by several orders of magnitude.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 16:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-to-mainframe-tape/m-p/642335#M23977</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-23T16:33:18Z</dc:date>
    </item>
  </channel>
</rss>

