|
When I run the code below in my syntax editor I get an error message saying:
Error # 99. Command name: BEGIN GPL >This command is only valid immediately following the GGRAPH procedure. >Execution of this command stops. Am I doing something wrong here? Kind Regards, Dennis * Chart Builder. GGRAPH /GRAPHDATASET NAME="graphdataset" VARIABLES=Q2 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: Q2=col(source(s), name("Q2"), 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("Number of new customers (parts counter or workshop)?")) 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(Q2)) END GPL. |
|
Without further information a SWAG would be that the command before the GGRAPH does not have a period. So the GGRAPH is taken as part of whatever was before it. Art Kendall Social Research Consultants On 9/15/2010 5:55 PM, dennisz wrote:
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (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
Art Kendall
Social Research Consultants |
|
Administrator
|
Thanks Art. Not for the first time, you have educated me. But I'm still not entirely sure whether you intended definition 2 or 3. ;-) http://www.urbandictionary.com/define.php?term=swag%20%28s.w.a.g.%29 Cheers, Bruce
--
Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." PLEASE NOTE THE FOLLOWING: 1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. 2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/). |
|
In reply to this post by Art Kendall
Hi Art,
Thanks a lot for your support. I'm really into trouble here. I've checked the Log file. Here's an exact copy: 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. So it seems there is no issue with a period. Also my syntax editor does not change the color of the words in the syntax between BEGIN GPL and END GPL. Like it does not recognise that section as code. Could you test it in your syntax editor and see what happens? Any other suggestions? Kind regards, Dennis |
|
In reply to this post by Bruce Weaver
Bruce,
Can you make a SWAG Def 2 or 3 to resolve my problem? I'm almost desparate enough to call my SWAG def 4. regards, Dennis |
|
In reply to this post by Bruce Weaver
Art On 9/16/2010 7:42 AM, Bruce Weaver wrote: ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (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 REFCARDArt Kendall wrote:
Art Kendall
Social Research Consultants |
|
In reply to this post by dennisz
Your syntax pasted into my copy of PASW(SPSS) does color the
elements of GGRAPH.
The syntax below except for the GET was created via the GUI. It also does not color between BEGIN GPL and END GPL. It does color those commands. The first set is a copy of the second set with "world95" changed to "nonexistent". Note that the first GET generates error 99. See if you have such a message higher up in your log. GET FILE='C:\Program Files\SPSSInc\PASWStatistics18\Samples\English\nonexistent.sav.sav'. DATASET NAME DataSet1 WINDOW=FRONT. * Chart Builder. GGRAPH /GRAPHDATASET NAME="graphdataset" VARIABLES=lifeexpm lifeexpf MISSING=LISTWISE REPORTMISSING=NO /GRAPHSPEC SOURCE=INLINE. BEGIN GPL SOURCE: s=userSource(id("graphdataset")) DATA: lifeexpm=col(source(s), name("lifeexpm")) DATA: lifeexpf=col(source(s), name("lifeexpf")) GUIDE: axis(dim(1), label("Average male life expectancy")) GUIDE: axis(dim(2), label("Average female life expectancy")) ELEMENT: point(position(lifeexpm*lifeexpf)) END GPL. GET FILE='C:\Program Files\SPSSInc\PASWStatistics18\Samples\English\world95.sav'. DATASET NAME DataSet2 WINDOW=FRONT. * Chart Builder. GGRAPH /GRAPHDATASET NAME="graphdataset" VARIABLES=lifeexpm lifeexpf MISSING=LISTWISE REPORTMISSING=NO /GRAPHSPEC SOURCE=INLINE. BEGIN GPL SOURCE: s=userSource(id("graphdataset")) DATA: lifeexpm=col(source(s), name("lifeexpm")) DATA: lifeexpf=col(source(s), name("lifeexpf")) GUIDE: axis(dim(1), label("Average male life expectancy")) GUIDE: axis(dim(2), label("Average female life expectancy")) ELEMENT: point(position(lifeexpm*lifeexpf)) END GPL. Did you create the GGRAPH and GPL via the GUI or write it yourself? Art Kendall Social Research Consultants On 9/16/2010 7:54 AM, dennisz wrote:
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (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
Art Kendall
Social Research Consultants |
|
Art,
You have triggered me, and now I have found the solution. Maybe it's because I'm not experience enough with the Syntax editor, but when I select all lines of the code in the sytax editor and then run it, its OK. I didn't know you HAVE to select all lines before you can run the script. I do some PHP programming in my spare time, and a PHP parser always runs the full script, regardless of the lines selected. Anyway: thanks a lot for your support. this will save me a lot of time! Kind regards, Dennis |
|
Yes that would do it if you do not have a data file activated.
Art On 9/16/2010 9:33 AM, dennisz wrote: ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (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 REFCARDArt, You have triggered me, and now I have found the solution. Maybe it's because I'm not experience enough with the Syntax editor, but when I select all lines of the code in the sytax editor and then run it, its OK. I didn't know you HAVE to select all lines before you can run the script. I do some PHP programming in my spare time, and a PHP parser always runs the full script, regardless of the lines selected. Anyway: thanks a lot for your support. this will save me a lot of time! Kind regards, Dennis -- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Error-99-This-command-is-only-valid-immediately-following-the-GGRAPH-procedure-tp2841441p2842250.html Sent from the SPSSX Discussion mailing list archive at Nabble.com. ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (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
Art Kendall
Social Research Consultants |
|
In reply to this post by dennisz
You don't have to select all the lines but you do need to select at least
the last line of the GGRAPH command and some part of the BEGIN GPL command. I just mouse select over the middle of the pair to run both commands. -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of dennisz Sent: Thursday, September 16, 2010 7:33 AM To: [hidden email] Subject: Re: Error # 99 This command is only valid immediately following the GGRAPH procedure. Art, You have triggered me, and now I have found the solution. Maybe it's because I'm not experience enough with the Syntax editor, but when I select all lines of the code in the sytax editor and then run it, its OK. I didn't know you HAVE to select all lines before you can run the script. I do some PHP programming in my spare time, and a PHP parser always runs the full script, regardless of the lines selected. Anyway: thanks a lot for your support. this will save me a lot of time! Kind regards, Dennis -- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Error-99-This-command-is-only- valid-immediately-following-the-GGRAPH-procedure-tp2841441p2842250.html Sent from the SPSSX Discussion mailing list archive at Nabble.com. ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (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 ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (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 |
| Free forum by Nabble | Edit this page |
