<?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 GCHART +GOUT= in batch in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48536#M1638</link>
    <description>Greetings.&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to generate a series of graphs with GCHART into a graphics-catalog and I want to do this this in batch. Generating these graphs online poses no problems and I use code that I copied from the manual. This works:&lt;BR /&gt;
&lt;BR /&gt;
GOPTIONS RESET=ALL    GUNIT=PCT BORDER CBACK=WHITE  &lt;BR /&gt;
         COLORS=(BLACK RED GREEN BLUE) FTITLE=SWISSB&lt;BR /&gt;
         FTEXT=SWISS HTITLE=6 HTEXT=4;&lt;BR /&gt;
&lt;BR /&gt;
TITLE1 'Daily Recall Physical Mounts';            &lt;BR /&gt;
PROC GCHART DATA=PDB.MNTPHRC GOUT=PDB.VEHGRAPH;   &lt;BR /&gt;
     VBAR DAY / SUMVAR=MOUNTS                     &lt;BR /&gt;
                OUTSIDE=SUM                       &lt;BR /&gt;
                WIDTH=9                           &lt;BR /&gt;
                SPACE=1                           &lt;BR /&gt;
                MIDPOINTS=1 TO 31 BY 1            &lt;BR /&gt;
     ;&lt;BR /&gt;
&lt;BR /&gt;
However, when I try to run this in batch (as follows):&lt;BR /&gt;
&lt;BR /&gt;
GOPTIONS RESET=ALL    GUNIT=PCT BORDER CBACK=WHITE  &lt;BR /&gt;
         COLORS=(BLACK RED GREEN BLUE) FTITLE=SWISSB&lt;BR /&gt;
         FTEXT=SWISS HTITLE=6 HTEXT=4 NODISPLAY;    &lt;BR /&gt;
                                                    &lt;BR /&gt;
TITLE1 'DAILY RECALL PHYSICAL MOUNTS';              &lt;BR /&gt;
PROC GCHART DATA=PDB.MNTPHRC GOUT=PDB.VEHGRAPH;     &lt;BR /&gt;
     VBAR DAY / SUMVAR=MOUNTS                       &lt;BR /&gt;
                OUTSIDE=SUM                         &lt;BR /&gt;
                WIDTH=9                             &lt;BR /&gt;
                SPACE=1                             &lt;BR /&gt;
                MIDPOINTS=1 TO 31 BY 1              &lt;BR /&gt;
                DES='DAILY RECALL PHYSICAL MOUNTS'  &lt;BR /&gt;
                NAME='DRPM04'                       &lt;BR /&gt;
     ;&lt;BR /&gt;
&lt;BR /&gt;
I keep running into a "ERROR: DEVICE INITIALIZATION FAILED.". I must be overlooking something, but what?</description>
    <pubDate>Tue, 13 Jul 2010 12:00:21 GMT</pubDate>
    <dc:creator>Willempie</dc:creator>
    <dc:date>2010-07-13T12:00:21Z</dc:date>
    <item>
      <title>GCHART +GOUT= in batch</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48536#M1638</link>
      <description>Greetings.&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to generate a series of graphs with GCHART into a graphics-catalog and I want to do this this in batch. Generating these graphs online poses no problems and I use code that I copied from the manual. This works:&lt;BR /&gt;
&lt;BR /&gt;
GOPTIONS RESET=ALL    GUNIT=PCT BORDER CBACK=WHITE  &lt;BR /&gt;
         COLORS=(BLACK RED GREEN BLUE) FTITLE=SWISSB&lt;BR /&gt;
         FTEXT=SWISS HTITLE=6 HTEXT=4;&lt;BR /&gt;
&lt;BR /&gt;
TITLE1 'Daily Recall Physical Mounts';            &lt;BR /&gt;
PROC GCHART DATA=PDB.MNTPHRC GOUT=PDB.VEHGRAPH;   &lt;BR /&gt;
     VBAR DAY / SUMVAR=MOUNTS                     &lt;BR /&gt;
                OUTSIDE=SUM                       &lt;BR /&gt;
                WIDTH=9                           &lt;BR /&gt;
                SPACE=1                           &lt;BR /&gt;
                MIDPOINTS=1 TO 31 BY 1            &lt;BR /&gt;
     ;&lt;BR /&gt;
&lt;BR /&gt;
However, when I try to run this in batch (as follows):&lt;BR /&gt;
&lt;BR /&gt;
GOPTIONS RESET=ALL    GUNIT=PCT BORDER CBACK=WHITE  &lt;BR /&gt;
         COLORS=(BLACK RED GREEN BLUE) FTITLE=SWISSB&lt;BR /&gt;
         FTEXT=SWISS HTITLE=6 HTEXT=4 NODISPLAY;    &lt;BR /&gt;
                                                    &lt;BR /&gt;
TITLE1 'DAILY RECALL PHYSICAL MOUNTS';              &lt;BR /&gt;
PROC GCHART DATA=PDB.MNTPHRC GOUT=PDB.VEHGRAPH;     &lt;BR /&gt;
     VBAR DAY / SUMVAR=MOUNTS                       &lt;BR /&gt;
                OUTSIDE=SUM                         &lt;BR /&gt;
                WIDTH=9                             &lt;BR /&gt;
                SPACE=1                             &lt;BR /&gt;
                MIDPOINTS=1 TO 31 BY 1              &lt;BR /&gt;
                DES='DAILY RECALL PHYSICAL MOUNTS'  &lt;BR /&gt;
                NAME='DRPM04'                       &lt;BR /&gt;
     ;&lt;BR /&gt;
&lt;BR /&gt;
I keep running into a "ERROR: DEVICE INITIALIZATION FAILED.". I must be overlooking something, but what?</description>
      <pubDate>Tue, 13 Jul 2010 12:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48536#M1638</guid>
      <dc:creator>Willempie</dc:creator>
      <dc:date>2010-07-13T12:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: GCHART +GOUT= in batch</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48537#M1639</link>
      <description>This is a little out of my area of expertise, but perhaps when you're running the batch job, you also still have your interactive/DMS SAS job running, and perhaps the DMS session has the graphics-catalog locked, such that the batch job can't write to it?&lt;BR /&gt;
&lt;BR /&gt;
Is there anything else in the SAS log?</description>
      <pubDate>Tue, 13 Jul 2010 12:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48537#M1639</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-07-13T12:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: GCHART +GOUT= in batch</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48538#M1640</link>
      <description>No. I do allocate the database with the catalog as DISP=OLD and when I run my batchjob, there is no interactive/DMS-session active.&lt;BR /&gt;
&lt;BR /&gt;
As for any extra messages in the SAS log, nothing. Just the usual "The SAS System stopped processing this step etc. etc. etc.", the usual end-statistics and then it ends.</description>
      <pubDate>Tue, 13 Jul 2010 12:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48538#M1640</guid>
      <dc:creator>Willempie</dc:creator>
      <dc:date>2010-07-13T12:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: GCHART +GOUT= in batch</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48539#M1641</link>
      <description>Hmm...&lt;BR /&gt;
&lt;BR /&gt;
Ok - I'm not sure that it makes a difference, but what version of SAS are you using (v9.1.3, v9.2, other?), and what Operating System are you running your SAS on?</description>
      <pubDate>Tue, 13 Jul 2010 12:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48539#M1641</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-07-13T12:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: GCHART +GOUT= in batch</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48540#M1642</link>
      <description>We're running SAS 9.1.3 SP 4 under zOS 1.10.</description>
      <pubDate>Tue, 13 Jul 2010 13:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48540#M1642</guid>
      <dc:creator>Willempie</dc:creator>
      <dc:date>2010-07-13T13:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: GCHART +GOUT= in batch</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48541#M1643</link>
      <description>And, for your batch job, your DEVICE= OPTIONS/GOPTIONS setting is set to?  Verify in your batch job with PROC OPTIONS OPTION=DEVICE; RUN;&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
batch chart device z/os site:sas.com</description>
      <pubDate>Tue, 13 Jul 2010 14:15:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48541#M1643</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-07-13T14:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: GCHART +GOUT= in batch</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48542#M1644</link>
      <description>A PROC OPTIONS OPTION=DEVICE; gets me the following output: DEVICE=           Graphics device driver.&lt;BR /&gt;
&lt;BR /&gt;
I guess this means that we never set a default graphics device and that I have to specify one when I run my job. &lt;BR /&gt;
&lt;BR /&gt;
Or do I? After all, I don't want to display anything, that's for later. For now I just want to store graphics in a catalog and I always assumed that SAS would do this in a device-independent form. So who cares about the device?</description>
      <pubDate>Tue, 13 Jul 2010 15:17:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48542#M1644</guid>
      <dc:creator>Willempie</dc:creator>
      <dc:date>2010-07-13T15:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: GCHART +GOUT= in batch</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48543#M1645</link>
      <description>Does it work if you specify a goptions device= ?</description>
      <pubDate>Tue, 13 Jul 2010 15:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48543#M1645</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-07-13T15:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: GCHART +GOUT= in batch</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48544#M1646</link>
      <description>A device is still needed for various pieces of information needed to create the GRSEG in the catalog. You will want to specify a device that most closely matches the way you will view the final output.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan</description>
      <pubDate>Tue, 13 Jul 2010 15:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48544#M1646</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2010-07-13T15:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: GCHART +GOUT= in batch</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48545#M1647</link>
      <description>No doubt you will get some extra mileage by contacting your SAS z/OS (IBM mainframe) administrator for guidance.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 13 Jul 2010 16:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48545#M1647</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-07-13T16:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: GCHART +GOUT= in batch</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48546#M1648</link>
      <description>Doesn't sound unreasonable. If I don't know exactly which outputdevice I will be using and want to keep all (or as many as possible) my options open, should I go for something like a SASEMF-driver or SASMETA?&lt;BR /&gt;
&lt;BR /&gt;
Their names at least suggest that their output will be more appropriate for various kinds of outputdevices than with any of the other drivers.</description>
      <pubDate>Wed, 14 Jul 2010 10:40:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GCHART-GOUT-in-batch/m-p/48546#M1648</guid>
      <dc:creator>Willempie</dc:creator>
      <dc:date>2010-07-14T10:40:52Z</dc:date>
    </item>
  </channel>
</rss>

