<?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 a word doc in MVS? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-a-word-doc-in-MVS/m-p/159308#M11949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here comes the solution, thanks to SAS support and these articles: &lt;A href="http://support.sas.com/rnd/base/ods/templateFAQ/ODS91.pdf"&gt;http://support.sas.com/rnd/base/ods/templateFAQ/ODS91.pdf&lt;/A&gt; and &lt;A href="http://support.sas.com/rnd/base/ods/odsrtf/rtf-tips.pdf" title="http://support.sas.com/rnd/base/ods/odsrtf/rtf-tips.pdf"&gt;http://support.sas.com/rnd/base/ods/odsrtf/rtf-tips.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange signs are because I run an old version of SAS (9.1).&lt;/P&gt;&lt;P&gt;The solution is:&lt;BR /&gt;1- to use NOTOC_DATA option&lt;BR /&gt;2- remove the TRANTAB&lt;BR /&gt;3- use CT="TEXT/PLAIN" EXT="DOC" when I send the report by email&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ODS RTF FILE= RTFFILE RS=NONE &lt;STRONG&gt;NOTOC_DATA&lt;/STRONG&gt;;&lt;BR /&gt;ODS LISTING CLOSE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=sashelp.class noobs;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GOPTIONS RESET=ALL&lt;BR /&gt;GSFMODE=REPLACE&lt;BR /&gt;DEVICE=EMF&lt;BR /&gt;GSFNAME=G&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC GCHART DATA=SASHELP.CLASS;&lt;BR /&gt;VBAR SEX / NAME="TEST";&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS RTF CLOSE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILENAME EMAIL EMAIL&lt;BR /&gt;TO=(&lt;A href="mailto:xx@xx.com'&amp;lt;mailto:xx@xx.com'"&gt;xx@xx.com'&amp;lt;mailto:xx@xx.com'&lt;/A&gt;&amp;gt;&lt;BR /&gt;)&lt;BR /&gt;FROM=(&lt;A href="mailto:'xx@xx.com'&amp;lt;mailto:'xx@xx.com'"&gt;'xx@xx.com'&amp;lt;mailto:'xx@xx.com'&lt;/A&gt;&amp;gt;)&lt;BR /&gt;SUBJECT = "Test file " &lt;BR /&gt;ATTACH = ("xxxxx.xxxx" &lt;BR /&gt;NAME="filnavn" &lt;BR /&gt;CT="&lt;STRONG&gt;TEXT/PLAIN&lt;/STRONG&gt;" EXT="DOC")&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;BR /&gt;FILE EMAIL;&lt;BR /&gt;PUT "Here is your file. ";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2014 11:52:04 GMT</pubDate>
    <dc:creator>alr</dc:creator>
    <dc:date>2014-09-29T11:52:04Z</dc:date>
    <item>
      <title>ODS a word doc in MVS?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-a-word-doc-in-MVS/m-p/159304#M11945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I’m running SAS 9.1 on z/OS (MVS) and try to generate a report in MS Word The report have many elements both graphs and tables and will be sent to the users by email.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I can’t get graphs in the output document (instead of graphs I get just a line with some strange characters).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="AsGraph.PNG" class="jive-image" src="https://communities.sas.com/legacyfs/online/7485_AsGraph.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table is fine but there are some strange characters on the top of the table as well.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="topOfTable.PNG" class="jive-image" src="https://communities.sas.com/legacyfs/online/7486_topOfTable.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no problem making PDF files (with graphs) but word documents seems not to be that easy?&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;Can anyone recommend a link to some useful papers about ODS and MS Word on mainframe (MVS)?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my test code which I run in a JCL:&lt;BR /&gt;//......&lt;BR /&gt;//RTFFILE&amp;nbsp; DD DSN=XXXXXX,DISP=(NEW,CATLG,CATLG),&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPACE=(CYL,(1,3),RLSE),DATACLAS=DCMULTI,&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DCB=(RECFM=VB,LRECL=8196,BLKSIZE=27998)&lt;BR /&gt;//G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DD DSN=XXXXX,DISP=(NEW,DELETE,DELETE),&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPACE=(CYL,(1,3),RLSE),DATACLAS=DCMULTI&lt;BR /&gt;//......&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;GOPTIONS RESET=ALL&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GSFMODE=REPLACE&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEVICE=EMF&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GSFNAME=G&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;PROC GCHART DATA=SASHELP.CLASS;&lt;BR /&gt; VBAR SEX / NAME="TEST";&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;OPTIONS ORIENTATION=LANDSCAPE;&lt;BR /&gt;ODS RTF FILE= RTFFILE STYLE=MINFONT RS=NONE TRANTAB=ASCII;&lt;/P&gt;&lt;P&gt;proc print data=sashelp.class noobs;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc greplay nofs&lt;BR /&gt;igout=Gseg;&lt;BR /&gt;replay test;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ODS RTF CLOSE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FILENAME EMAIL EMAIL&lt;BR /&gt;TO=('.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 11:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-a-word-doc-in-MVS/m-p/159304#M11945</guid>
      <dc:creator>alr</dc:creator>
      <dc:date>2014-09-25T11:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: ODS a word doc in MVS?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-a-word-doc-in-MVS/m-p/159305#M11946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, a few things there.&amp;nbsp; You are not creating a Word document to start with.&amp;nbsp; You are creating an RTF file, which is a text markup language, i.e. it is plain text with many keywords to help the reader interpret and display the data.&amp;nbsp; What you are seeing between those curly braces is RTF code.&amp;nbsp; However it also looks incorrect.&amp;nbsp; RTF code is {} indicates a group, the keyword tc should be prefixed by \ slash: {\tc ...}.&amp;nbsp; The TC is normally for table of contents - you could try options(contents=no) on the ods rtf line.&amp;nbsp; You may also want to take off the options: STYLE=MINFONT RS=NONE TRANTAB=ASCII;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thirdly how are you viewing the file as interpreters vary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally have you tried running your code on Windows, and opening the file still in Windows with Word?&amp;nbsp; Not sure if there are limitations of graph drawing on your OS, also with regards to the output of said graph being embedded into the RTF. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 12:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-a-word-doc-in-MVS/m-p/159305#M11946</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-09-25T12:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: ODS a word doc in MVS?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-a-word-doc-in-MVS/m-p/159306#M11947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;contents=no made it even worst.&lt;/P&gt;&lt;P&gt;I’ve looked at this document &lt;A href="http://support.sas.com/rnd/base/ods/templateFAQ/MVSODS3.pdf"&gt;http://support.sas.com/rnd/base/ods/templateFAQ/MVSODS3.pdf&lt;/A&gt;&lt;BR /&gt;But I guess our system is a bit different.&lt;/P&gt;&lt;P&gt;I’ll send the file to myself by email and open it in word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILENAME EMAIL EMAIL&lt;BR /&gt;TO=(&lt;A href="mailto:xx@xx.com'"&gt;xx@xx.com'&lt;/A&gt;&lt;BR /&gt;)&lt;BR /&gt;FROM=(&lt;A href="mailto:'xx@xx.com'"&gt;'xx@xx.com'&lt;/A&gt;)&lt;BR /&gt;SUBJECT = "Test file "&lt;BR /&gt;ATTACH&amp;nbsp; = ("xxxxx.xxxx"&lt;BR /&gt;NAME="ZZZ"&lt;BR /&gt;CT="APPLICATION/MSWORD" EXT="DOC")&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;FILE EMAIL;&lt;BR /&gt;PUT "Here is your file. ";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code works fine in PC SAS at windows. It works fine with ODS PDF on MVS as well.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Do you know any articles on how to create word documents with graphs on MVS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 13:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-a-word-doc-in-MVS/m-p/159306#M11947</guid>
      <dc:creator>alr</dc:creator>
      <dc:date>2014-09-25T13:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: ODS a word doc in MVS?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-a-word-doc-in-MVS/m-p/159307#M11948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't and nothing seems to come up on a Google.&amp;nbsp; Perhaps try an IT ticket on this one as it looks to me a bit like the tagset is outputting something incorrectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 13:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-a-word-doc-in-MVS/m-p/159307#M11948</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-09-25T13:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: ODS a word doc in MVS?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-a-word-doc-in-MVS/m-p/159308#M11949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here comes the solution, thanks to SAS support and these articles: &lt;A href="http://support.sas.com/rnd/base/ods/templateFAQ/ODS91.pdf"&gt;http://support.sas.com/rnd/base/ods/templateFAQ/ODS91.pdf&lt;/A&gt; and &lt;A href="http://support.sas.com/rnd/base/ods/odsrtf/rtf-tips.pdf" title="http://support.sas.com/rnd/base/ods/odsrtf/rtf-tips.pdf"&gt;http://support.sas.com/rnd/base/ods/odsrtf/rtf-tips.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange signs are because I run an old version of SAS (9.1).&lt;/P&gt;&lt;P&gt;The solution is:&lt;BR /&gt;1- to use NOTOC_DATA option&lt;BR /&gt;2- remove the TRANTAB&lt;BR /&gt;3- use CT="TEXT/PLAIN" EXT="DOC" when I send the report by email&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ODS RTF FILE= RTFFILE RS=NONE &lt;STRONG&gt;NOTOC_DATA&lt;/STRONG&gt;;&lt;BR /&gt;ODS LISTING CLOSE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=sashelp.class noobs;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GOPTIONS RESET=ALL&lt;BR /&gt;GSFMODE=REPLACE&lt;BR /&gt;DEVICE=EMF&lt;BR /&gt;GSFNAME=G&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC GCHART DATA=SASHELP.CLASS;&lt;BR /&gt;VBAR SEX / NAME="TEST";&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS RTF CLOSE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILENAME EMAIL EMAIL&lt;BR /&gt;TO=(&lt;A href="mailto:xx@xx.com'&amp;lt;mailto:xx@xx.com'"&gt;xx@xx.com'&amp;lt;mailto:xx@xx.com'&lt;/A&gt;&amp;gt;&lt;BR /&gt;)&lt;BR /&gt;FROM=(&lt;A href="mailto:'xx@xx.com'&amp;lt;mailto:'xx@xx.com'"&gt;'xx@xx.com'&amp;lt;mailto:'xx@xx.com'&lt;/A&gt;&amp;gt;)&lt;BR /&gt;SUBJECT = "Test file " &lt;BR /&gt;ATTACH = ("xxxxx.xxxx" &lt;BR /&gt;NAME="filnavn" &lt;BR /&gt;CT="&lt;STRONG&gt;TEXT/PLAIN&lt;/STRONG&gt;" EXT="DOC")&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;BR /&gt;FILE EMAIL;&lt;BR /&gt;PUT "Here is your file. ";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 11:52:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-a-word-doc-in-MVS/m-p/159308#M11949</guid>
      <dc:creator>alr</dc:creator>
      <dc:date>2014-09-29T11:52:04Z</dc:date>
    </item>
  </channel>
</rss>

