problem Run Batch with SPSS 12

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

problem Run Batch with SPSS 12

Julia Li
I have a syntax file as follow and it runs fine in well SPSS 12. But when I
try to run it in a batch, I get following error message:

DATA LIST FILE = 'C:\Z\Extracts\DWDTextExport_MainTable.txt'
/Extract_Date  1-8(A)
ID 9-19(A)
Name 20-84(A)
Birthdate 85-92(A)
RefusedSSN 93-93(A)
Ind_Ident 94-102(A)
ClientID 103-112(A)
EnrollID 113-122(A).

>Error # 1 on line 29.  Command name: /Extract_Date
>The first word in the line is not recognized as an SPSS command.
>This command not executed.

Here my batch files:
cd c:\Program files\SPSS\
runsyntx.exe C:\Syntax\importExtract\Main_Table_step1.sps

Any suggestion is appreciated.  Thanks!

Julia

=====================
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
Reply | Threaded
Open this post in threaded view
|

Re: problem Run Batch with SPSS 12

Lemon, John S.
I think you need a space before the '/' in the second line and spaces for rest of the DATA LIST command as old versions of SPSS syntax needed a space to indicate continuations of commands so it should look like:

DATA LIST FILE = 'C:\Z\Extracts\DWDTextExport_MainTable.txt'
  /Extract_Date  1-8(A)
  ID 9-19(A)
  Name 20-84(A)
  Birthdate 85-92(A)
  RefusedSSN 93-93(A)
  Ind_Ident 94-102(A)
  ClientID 103-112(A)
  EnrollID 113-122(A).

Best Wishes

John S. Lemon
DIT - Student Liaison Officer
University of Aberdeen
Edward Wright Building: Room G51
Tel:  +44 1224 273350
Fax: +44 1224 273372



-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Julia Li
Sent: 06 March 2008 20:24
To: [hidden email]
Subject: problem Run Batch with SPSS 12

I have a syntax file as follow and it runs fine in well SPSS 12. But when I
try to run it in a batch, I get following error message:

DATA LIST FILE = 'C:\Z\Extracts\DWDTextExport_MainTable.txt'
/Extract_Date  1-8(A)
ID 9-19(A)
Name 20-84(A)
Birthdate 85-92(A)
RefusedSSN 93-93(A)
Ind_Ident 94-102(A)
ClientID 103-112(A)
EnrollID 113-122(A).

>Error # 1 on line 29.  Command name: /Extract_Date
>The first word in the line is not recognized as an SPSS command.
>This command not executed.

Here my batch files:
cd c:\Program files\SPSS\
runsyntx.exe C:\Syntax\importExtract\Main_Table_step1.sps

Any suggestion is appreciated.  Thanks!

Julia

=====================
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



The University of Aberdeen is a charity registered in Scotland, No SC013683.

=====================
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
Reply | Threaded
Open this post in threaded view
|

Re: problem Run Batch with SPSS 12

Julia Li
John:

That is the exactly reason. It works now!!!  Many Thanks!!!

Julia

-----Original Message-----
From: Lemon, John S. [mailto:[hidden email]]
Sent: Thursday, March 06, 2008 4:35 PM
To: Li, Julia; [hidden email]
Subject: RE: problem Run Batch with SPSS 12

I think you need a space before the '/' in the second line and spaces
for rest of the DATA LIST command as old versions of SPSS syntax needed
a space to indicate continuations of commands so it should look like:

DATA LIST FILE = 'C:\Z\Extracts\DWDTextExport_MainTable.txt'
  /Extract_Date  1-8(A)
  ID 9-19(A)
  Name 20-84(A)
  Birthdate 85-92(A)
  RefusedSSN 93-93(A)
  Ind_Ident 94-102(A)
  ClientID 103-112(A)
  EnrollID 113-122(A).

Best Wishes

John S. Lemon
DIT - Student Liaison Officer
University of Aberdeen
Edward Wright Building: Room G51
Tel:  +44 1224 273350
Fax: +44 1224 273372



-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Julia Li
Sent: 06 March 2008 20:24
To: [hidden email]
Subject: problem Run Batch with SPSS 12

I have a syntax file as follow and it runs fine in well SPSS 12. But
when I
try to run it in a batch, I get following error message:

DATA LIST FILE = 'C:\Z\Extracts\DWDTextExport_MainTable.txt'
/Extract_Date  1-8(A)
ID 9-19(A)
Name 20-84(A)
Birthdate 85-92(A)
RefusedSSN 93-93(A)
Ind_Ident 94-102(A)
ClientID 103-112(A)
EnrollID 113-122(A).

>Error # 1 on line 29.  Command name: /Extract_Date
>The first word in the line is not recognized as an SPSS command.
>This command not executed.

Here my batch files:
cd c:\Program files\SPSS\
runsyntx.exe C:\Syntax\importExtract\Main_Table_step1.sps

Any suggestion is appreciated.  Thanks!

Julia

=====================
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



The University of Aberdeen is a charity registered in Scotland, No
SC013683.

=====================
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