<?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 Zip SAS Data on MVS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66843#M19093</link>
    <description>Hi all:&lt;BR /&gt;
&lt;BR /&gt;
Another quick question - how do I zip a SAS file on a z/OS (MVS) mainframe so I can FTP it to a local server?&lt;BR /&gt;
&lt;BR /&gt;
I've read some of the other threads on this and they all deal with zipping or unzipping the file locally.&lt;BR /&gt;
&lt;BR /&gt;
I want to see if zipping the file first will reduce the time it takes to download (it's pretty big).&lt;BR /&gt;
&lt;BR /&gt;
I would rather do it in my CONNECT session, than having to run a MVS batch job that runs PKZIP on the mainframe - and then downloading the resulting file.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.</description>
    <pubDate>Fri, 28 Jan 2011 17:41:33 GMT</pubDate>
    <dc:creator>OS2Rules</dc:creator>
    <dc:date>2011-01-28T17:41:33Z</dc:date>
    <item>
      <title>Zip SAS Data on MVS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66843#M19093</link>
      <description>Hi all:&lt;BR /&gt;
&lt;BR /&gt;
Another quick question - how do I zip a SAS file on a z/OS (MVS) mainframe so I can FTP it to a local server?&lt;BR /&gt;
&lt;BR /&gt;
I've read some of the other threads on this and they all deal with zipping or unzipping the file locally.&lt;BR /&gt;
&lt;BR /&gt;
I want to see if zipping the file first will reduce the time it takes to download (it's pretty big).&lt;BR /&gt;
&lt;BR /&gt;
I would rather do it in my CONNECT session, than having to run a MVS batch job that runs PKZIP on the mainframe - and then downloading the resulting file.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.</description>
      <pubDate>Fri, 28 Jan 2011 17:41:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66843#M19093</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-01-28T17:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Zip SAS Data on MVS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66844#M19094</link>
      <description>Your SAS file will need to be converted go CEDA-format.  Then it can be "moved" to another OS platform, as required.  Check the SAS companion documentation for creating a "transport format" file which then can be zipped, then FTP'd to a foreign-host, all in one  z/OS MVS batch jobstream.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
move sas data different os site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
transport format ceda site:sas.com</description>
      <pubDate>Fri, 28 Jan 2011 19:08:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66844#M19094</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-01-28T19:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Zip SAS Data on MVS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66845#M19095</link>
      <description>Scott:&lt;BR /&gt;
&lt;BR /&gt;
I'm really hoping that I don't need to unload the SAS data to a transportable format - I would like to zip the SAS file and transmit it to my local machine.  My manual for zip for z/OS says that the recieved file will be compatible no matter what platform it is sent to - I'm hoping this isn't just smoke and mirrors.&lt;BR /&gt;
&lt;BR /&gt;
If I can run a "X" command on the local machine to unzip a file, I would just like the syntax for a similar command on the mainframe to do the zip ... maybe invoke REXX and have it run the zip ??</description>
      <pubDate>Fri, 28 Jan 2011 19:38:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66845#M19095</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-01-28T19:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Zip SAS Data on MVS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66846#M19096</link>
      <description>SAS data libraries are not always cross-environment compatible -- you will want/need to read the companion documentation for the details; it has to do with EBCDIC and ASCII conversion.  &lt;BR /&gt;
&lt;BR /&gt;
You can't expect to just zip-up a mainframe SAS data library, transport it in binary to another different OS platform, unzip it and expect to be able to read / process the data library as-is.&lt;BR /&gt;
&lt;BR /&gt;
Your ZIP documentation is not considering that this is an "application database" format, not a sequential file.  I believe you are reading too much into the statement, as well -- I believe it means that a "zip archive" can be moved to another OS platform, unzipped and used there.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 28 Jan 2011 22:20:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66846#M19096</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-01-28T22:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Zip SAS Data on MVS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66847#M19097</link>
      <description>how about defining a filename in your SAS session with the ddname that would be used by your z/OS zip program for the output from zip and for the input ddname for zip point at the mainframne file you want to compress. Then instead of x zip, submit&lt;BR /&gt;
proc zip ;&lt;BR /&gt;
run;&lt;BR /&gt;
and replace zip in that proc statement with the executable name for your mainframe ZIP.&lt;BR /&gt;
 Oh, forgot to suggest also, make the filename for the output from zip use the ftp server on the receiving machine.</description>
      <pubDate>Fri, 28 Jan 2011 23:57:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66847#M19097</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-01-28T23:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Zip SAS Data on MVS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66848#M19098</link>
      <description>Scott and Peter:&lt;BR /&gt;
&lt;BR /&gt;
Thanks for all the information.&lt;BR /&gt;
&lt;BR /&gt;
I finally got around to doing some experimentation and found out that my source regarding whether the zip file is transportable was lying (!).&lt;BR /&gt;
&lt;BR /&gt;
I used the MVS version of PKZIP to zip a SAS dataset and then sent both the original and the zipped file to my PC.  The original was about 15x larger than the zipped version.  I couldn't read the zipped copy at all - couldn't even unzip it (it was a "bad archive"). &lt;BR /&gt;
&lt;BR /&gt;
Lesson learned.  Thanks again.</description>
      <pubDate>Mon, 31 Jan 2011 15:21:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66848#M19098</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-01-31T15:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Zip SAS Data on MVS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66849#M19099</link>
      <description>I'm surprised the zip (delivered with a binary transfer) failed to be recognized.&lt;BR /&gt;
&lt;BR /&gt;
There best alternative I would recommend is SAS/Connect which uses the cport transport format which is compressed. The method also overcomes the different architectures. &lt;BR /&gt;
If that is not available, you could knock something up with filename statements using tcpip ports - then run proc cport on the mainframe into the open port that is being read by proc cimport on the pc.&lt;BR /&gt;
 &lt;BR /&gt;
peterC</description>
      <pubDate>Mon, 31 Jan 2011 16:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66849#M19099</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-01-31T16:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Zip SAS Data on MVS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66850#M19100</link>
      <description>To make this problem even more complicated ...&lt;BR /&gt;
&lt;BR /&gt;
I added a step on the mainframe to create a "transportable" format file using PROC CPORT.  This file I then zipped and sent to the local machine (in binary).  Once there I was able to unzip the file, but when I tried to rebuild the SAS dataset with a PROC CIMPORT, I get:&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Unrecognized or unsupported transport file format.&lt;BR /&gt;
&lt;BR /&gt;
I'm thinking that the original file is EBCDIC (the transport file), and I need to tell zip on the local machine to unzip the file to ASCII (??).</description>
      <pubDate>Mon, 31 Jan 2011 19:54:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66850#M19100</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-01-31T19:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Zip SAS Data on MVS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66851#M19101</link>
      <description>I suggest you repeat your test, but don't zip/unzip the file. If this works then it is the zip/unzip causing the problem. If it doesn't work then you can conclude that your transport file is not correct.&lt;BR /&gt;
&lt;BR /&gt;
BTW a transport file on MVS has to have certain file characteristics (eg RECFM = F, LRECL = 80, BLKSIZE = ??). Check the documentation as I am quoting this from memory. It is my understanding that a transport file is always created in ASCII regardless of the platform it is created on, hence the need for the binary transfer.</description>
      <pubDate>Mon, 31 Jan 2011 20:07:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66851#M19101</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2011-01-31T20:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Zip SAS Data on MVS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66852#M19102</link>
      <description>As suggested, reading the available DOC on the topic goes a long way.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 01 Feb 2011 04:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66852#M19102</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-02-01T04:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Zip SAS Data on MVS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66853#M19103</link>
      <description>After much hair-pulling and griding of teeth, I think I have it working.&lt;BR /&gt;
&lt;BR /&gt;
Firstly, as in most cases, it came down to a teeny-weeny parameter in the MVS PKzip - I needed to do a "binary" compress rather than a "text" compress on the mainframe.  &lt;BR /&gt;
&lt;BR /&gt;
So now the process goes:&lt;BR /&gt;
1)export the SAS table I want to a transport format (PROC CPORT)&lt;BR /&gt;
2)Zip this file on the mainframe - in binary&lt;BR /&gt;
3)switch to my "local" system and download the zipped file (PROC DOWNLOAD) in CONNECT - again - in binary&lt;BR /&gt;
4)unzip the file locally&lt;BR /&gt;
5)import that file back into a SAS table (PROC CIMPORT)&lt;BR /&gt;
6)pat myself on the back for a complex solution to a simple problem!&lt;BR /&gt;
&lt;BR /&gt;
Thanks to all for the help.</description>
      <pubDate>Tue, 01 Feb 2011 14:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Zip-SAS-Data-on-MVS/m-p/66853#M19103</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-02-01T14:19:32Z</dc:date>
    </item>
  </channel>
</rss>

