Date: Thu, 16 Sep 2010 08:47:04 -0400
Reply-To: Art@DrKendall.org
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Art Kendall <Art@DrKendall.org>
Organization: Social Research Consultants
Subject: Re: Error # 99 This command is only valid immediately following
the GGRAPH procedure.
In-Reply-To: <1284638090539-2842156.post@n5.nabble.com>
Content-type: text/html; charset=ISO-8859-1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Your syntax pasted into my copy of PASW(SPSS) does color the
elements of GGRAPH.<br>
<br>
The syntax below except for the GET was created via the GUI. It
also does not color between BEGIN GPL and END GPL.<br>
It does color those commands.<br>
The first set is a copy of the second set with "world95" changed
to "nonexistent".<br>
Note that the first GET generates error 99. See if you have such
a message higher up in your log.<br>
GET<br>
FILE='C:\Program
Files\SPSSInc\PASWStatistics18\Samples\English\nonexistent.sav.sav'.<br>
DATASET NAME DataSet1 WINDOW=FRONT.<br>
* Chart Builder.<br>
GGRAPH<br>
/GRAPHDATASET NAME="graphdataset" VARIABLES=lifeexpm lifeexpf
MISSING=LISTWISE REPORTMISSING=NO<br>
/GRAPHSPEC SOURCE=INLINE.<br>
BEGIN GPL<br>
SOURCE: s=userSource(id("graphdataset"))<br>
DATA: lifeexpm=col(source(s), name("lifeexpm"))<br>
DATA: lifeexpf=col(source(s), name("lifeexpf"))<br>
GUIDE: axis(dim(1), label("Average male life expectancy"))<br>
GUIDE: axis(dim(2), label("Average female life expectancy"))<br>
ELEMENT: point(position(lifeexpm*lifeexpf))<br>
END GPL.<br>
<br>
GET<br>
FILE='C:\Program
Files\SPSSInc\PASWStatistics18\Samples\English\world95.sav'.<br>
DATASET NAME DataSet2 WINDOW=FRONT.<br>
* Chart Builder.<br>
GGRAPH<br>
/GRAPHDATASET NAME="graphdataset" VARIABLES=lifeexpm lifeexpf
MISSING=LISTWISE REPORTMISSING=NO<br>
/GRAPHSPEC SOURCE=INLINE.<br>
BEGIN GPL<br>
SOURCE: s=userSource(id("graphdataset"))<br>
DATA: lifeexpm=col(source(s), name("lifeexpm"))<br>
DATA: lifeexpf=col(source(s), name("lifeexpf"))<br>
GUIDE: axis(dim(1), label("Average male life expectancy"))<br>
GUIDE: axis(dim(2), label("Average female life expectancy"))<br>
ELEMENT: point(position(lifeexpm*lifeexpf))<br>
END GPL.<br>
</tt><br>
<br>
Did you create the GGRAPH and GPL via the GUI or write it yourself?<br>
<br>
Art Kendall<br>
Social Research Consultants<br>
<br>
On 9/16/2010 7:54 AM, dennisz wrote:
<blockquote cite="mid:1284638090539-2842156.post@n5.nabble.com"
type="cite">
<pre wrap="">GET
FILE='C:\Users\Dennis\Documents\BCM\BCM_Q3_WORKSHOP.sav'.
DATASET NAME DataSet1 WINDOW=FRONT.
* Chart Builder.
GGRAPH
/GRAPHDATASET NAME="graphdataset" VARIABLES=V18 COUNT()[name="COUNT"]
MISSING=LISTWISE REPORTMISSING=NO
/GRAPHSPEC SOURCE=INLINE
TEMPLATE=[
"C:\Users\Dennis\BCM_Chart_template_8.sgt"].
BEGIN GPL
SOURCE: s=userSource(id("graphdataset"))
DATA: V18=col(source(s), name("V18"), unit.category())
DATA: COUNT=col(source(s), name("COUNT"))
COORD: polar.theta(startAngle(0))
GUIDE: axis(dim(1), null())
GUIDE: legend(aesthetic(aesthetic.color.interior), label("Percentage of
your fleet not in use?"))
SCALE: linear(dim(1), dataMinimum(), dataMaximum())
SCALE: cat(aesthetic(aesthetic.color.interior), include("0", "1", "2", "4",
"5"))
ELEMENT: interval.stack(position(summary.percent(COUNT))),
color.interior(V18))
END GPL.
</pre>
</blockquote>
</body>
</html>
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
|