<?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: How to create batch PDF files from banary data files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-batch-PDF-files-from-binary-data-files/m-p/636365#M189057</link>
    <description>&lt;P&gt;Your data looks like hexadecimal codes, not binary data.&lt;/P&gt;
&lt;P&gt;So something like this is more suitable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data binarydata;
  infile "&amp;amp;pathin/binarydata.txt" recfm=N;
  file   "&amp;amp;pathout/binarydata.pdf" recfm=N;
  input  C $hex2. @@;
  put    C $char1. @@;
  putlog C $char1. @@;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This should work as this code yields an output file that starts with:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Catalog/ViewerPreferences&amp;lt;&amp;lt;/Direction/L2R&amp;gt;&amp;gt;&amp;gt;&amp;gt;endobj2 0 obj&amp;lt;&amp;lt;/Count 1/Kids[ 4 0 R ]/Type/Pages&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;[Edited: Sorry, altered for clarity]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 21:05:09 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-03-31T21:05:09Z</dc:date>
    <item>
      <title>How to create batch PDF files from binary data files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-batch-PDF-files-from-binary-data-files/m-p/636348#M189050</link>
      <description>&lt;P&gt;Experts,&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; have a data stored as binary in the server and I want to convert the banary data into PDF format. Is there a way to convert banary data into a report in PDF format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data binarydata;&lt;BR /&gt;infile "C:\bin\binarydata.txt" recfm=N;&lt;BR /&gt;input c $char1.;&lt;BR /&gt;put c $char1. @@;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods pdf file="C:\bin\binarydata.pdf";&lt;BR /&gt;proc print data=binarydata;&lt;BR /&gt;run;&lt;BR /&gt;ods pdf;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 21:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-batch-PDF-files-from-binary-data-files/m-p/636348#M189050</guid>
      <dc:creator>tekish</dc:creator>
      <dc:date>2020-03-31T21:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create batch PDF files from banary data files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-batch-PDF-files-from-binary-data-files/m-p/636357#M189054</link>
      <description>&lt;P&gt;Your approach seems correct. Which part isn't working or what isn't working as expected (Note that I'm not going to import a binary file that I don't understand).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post any errors from the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51471"&gt;@tekish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Experts,&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; have a data stored as binary in the server and I want to convert the banary data into PDF format. Is there a way to convert banary data into a report in PDF format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data binarydata;&lt;BR /&gt;infile "C:\bin\binarydata.txt" recfm=N;&lt;BR /&gt;input c $char1.;&lt;BR /&gt;put c $char1. @@;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods pdf file="C:\bin\binarydata.pdf";&lt;BR /&gt;proc print data=binarydata;&lt;BR /&gt;run;&lt;BR /&gt;ods pdf;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 20:33:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-batch-PDF-files-from-binary-data-files/m-p/636357#M189054</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-31T20:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create batch PDF files from banary data files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-batch-PDF-files-from-binary-data-files/m-p/636365#M189057</link>
      <description>&lt;P&gt;Your data looks like hexadecimal codes, not binary data.&lt;/P&gt;
&lt;P&gt;So something like this is more suitable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data binarydata;
  infile "&amp;amp;pathin/binarydata.txt" recfm=N;
  file   "&amp;amp;pathout/binarydata.pdf" recfm=N;
  input  C $hex2. @@;
  put    C $char1. @@;
  putlog C $char1. @@;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This should work as this code yields an output file that starts with:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, Courier, 'Courier New'; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Catalog/ViewerPreferences&amp;lt;&amp;lt;/Direction/L2R&amp;gt;&amp;gt;&amp;gt;&amp;gt;endobj2 0 obj&amp;lt;&amp;lt;/Count 1/Kids[ 4 0 R ]/Type/Pages&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;[Edited: Sorry, altered for clarity]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 21:05:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-batch-PDF-files-from-binary-data-files/m-p/636365#M189057</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-03-31T21:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create batch PDF files from binary data files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-batch-PDF-files-from-binary-data-files/m-p/636390#M189068</link>
      <description>&lt;P&gt;Fixed typo in title.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 21:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-batch-PDF-files-from-binary-data-files/m-p/636390#M189068</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-03-31T21:43:00Z</dc:date>
    </item>
  </channel>
</rss>

