<?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: In z/OS, is it possible to uncatalog a (TAPEE) file in SAS code? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/In-z-OS-is-it-possible-to-uncatalog-a-TAPEE-file-in-SAS-code/m-p/646184#M193263</link>
    <description>&lt;P&gt;I'm not sure I understand correctly what you mean by "uncatoging".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) can you post your JCL used? that may help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) does next code do what you need:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME DWNLFILE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2020 12:32:39 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2020-05-08T12:32:39Z</dc:date>
    <item>
      <title>In z/OS, is it possible to uncatalog a (TAPEE) file in SAS code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-z-OS-is-it-possible-to-uncatalog-a-TAPEE-file-in-SAS-code/m-p/646180#M193259</link>
      <description>&lt;P&gt;I am creating a CPORT file and I have this SAS code to create the FILENAME&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;FILENAME DWNLFILE 'CPORT.MYFILE' DISP=(NEW,CATLG,DELETE) UNIT=TAPEE VOLCOUNT=99 LRECL=80 BLKSIZE=8000 DSORG=PS RECFM=FB;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My current method of UNCATALOGing this file is to do it in JCL. However I would like to set one macro var for the filename literal that would be used in UNCATALOGing the file, creating the filename, and downloading the file via FTP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I claim no expertise in z/OS operating systems. Any help is appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 12:14:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-z-OS-is-it-possible-to-uncatalog-a-TAPEE-file-in-SAS-code/m-p/646180#M193259</guid>
      <dc:creator>Jay_TxOAG</dc:creator>
      <dc:date>2020-05-08T12:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: In z/OS, is it possible to uncatalog a (TAPEE) file in SAS code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-z-OS-is-it-possible-to-uncatalog-a-TAPEE-file-in-SAS-code/m-p/646184#M193263</link>
      <description>&lt;P&gt;I'm not sure I understand correctly what you mean by "uncatoging".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) can you post your JCL used? that may help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) does next code do what you need:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME DWNLFILE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 12:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-z-OS-is-it-possible-to-uncatalog-a-TAPEE-file-in-SAS-code/m-p/646184#M193263</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-05-08T12:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: In z/OS, is it possible to uncatalog a (TAPEE) file in SAS code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-z-OS-is-it-possible-to-uncatalog-a-TAPEE-file-in-SAS-code/m-p/646210#M193265</link>
      <description>&lt;P&gt;I use this in my JCL to uncatalog/clear/delete the file.&lt;/P&gt;
&lt;PRE&gt;000003 //DEL     EXEC PROC=UCC11RMS,TYPRUN='P'&lt;BR /&gt;000024 //DWNL    DD DSN=CSUSER.CPORT.DWNL,DISP=(NEW,CATLG,KEEP),
000025 //            UNIT=TAPEE,VOL=(,,,99),                     
000026 //            DCB=(LRECL=80,RECFM=FB,BLKSIZE=8000)        &lt;/PRE&gt;
&lt;P&gt;Then to create my FILENAME, which I need for my CPORT statement, I do the following&lt;/P&gt;
&lt;PRE&gt;000057 FILENAME DWNLFILE "CSUSER.CPORT.DWNL"         
000058  DISP=(NEW,CATLG,DELETE) UNIT=TAPEE VOLCOUNT=99
000059  LRECL=80 BLKSIZE=8000 DSORG=PS RECFM=FB;      &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I (just) realize that one solution would be to have a delete step after the CPORT is complete. Then weekly runs of the job would allow the FILENAME statement would work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I would like to know if there is a way either in the FILENAME statement or in a separate SAS statement to "reuse"&amp;nbsp; CSUSER.CPORT.DWNL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this were possible, then I could just create a macro var for the "DWNL" portion of the filename and use it where needed. I will need to duplicate this type of job to download many data sets.&lt;/P&gt;
&lt;P&gt;Thanks for your time.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 13:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-z-OS-is-it-possible-to-uncatalog-a-TAPEE-file-in-SAS-code/m-p/646210#M193265</guid>
      <dc:creator>Jay_TxOAG</dc:creator>
      <dc:date>2020-05-08T13:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: In z/OS, is it possible to uncatalog a (TAPEE) file in SAS code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-z-OS-is-it-possible-to-uncatalog-a-TAPEE-file-in-SAS-code/m-p/646223#M193271</link>
      <description>&lt;P&gt;If you want to delete the catalog file you can do it by sas:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename mycat .........;

try one of next two statements:

1) rc = fdelete(mycat);

2) rc = filedelete("&amp;lt;full path and file name&amp;gt;");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;better&amp;nbsp;check&amp;nbsp;for&amp;nbsp;full&amp;nbsp;documentation&amp;nbsp;and&amp;nbsp;syntax,&amp;nbsp;maybe&amp;nbsp;you&amp;nbsp;need&amp;nbsp;some&amp;nbsp;more&amp;nbsp;options&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;to add to filedelete() function.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 14:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-z-OS-is-it-possible-to-uncatalog-a-TAPEE-file-in-SAS-code/m-p/646223#M193271</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-05-08T14:31:54Z</dc:date>
    </item>
  </channel>
</rss>

