loop spssinc usage

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

loop spssinc usage

jfca283
This post was updated on .
Hi
i've looking the web and i installed the packages required
I need to run the following syntax
-------------------------------------
WEIGHT BY FACT.
USE ALL.
COMPUTE filter_$=(cse_especifico>=8 & cse_especifico<=9).
VARIABLE LABELS filter_$ 'cse_especifico>=8 & cse_especifico<=9 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

CROSSTABS
  /TABLES=CINE BY REGION
  /FORMAT=AVALUE TABLES
  /CELLS=COUNT
  /COUNT ROUND CELL.
---------------------------------
I need to run that code to all the files in the folder \\YYZ_S\DB
So, i saved the syntax desired like pro.sps. Besides, i don't want to write the files, just process them and close them and so on.

The statistics visor shows me this

SPSSINC PROCESS FILES
SYNTAX="C:\Users\JC\DB\pro.sps" OUTPUTDATADIR="\\YYZ_S\DB" CONTINUEONERROR=YES
VIEWERDIR= "C:\Users\JC\Desktop" CLOSEDATA=YES
MACRONAME="!JOB" LOGFILEMODE=APPEND
/MACRODEFS ITEMS.

But i receive this message

Either FILELIST or INPUTDATA must be specified but not both

What am i doing so wrong?
Reply | Threaded
Open this post in threaded view
|

Re: loop spssinc usage

jfca283
This post was updated on .
I think the problem is the address network.
I run the same code reading some sav files inside "C:\\DB\*.sav" and it goes well.
Do you have some issues with "spssinc process files" reading a shared folder?
Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: loop spssinc usage

Jon K Peck
It should make no difference whether the location is on a network or local as long as you have the right access permissions.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        jfca283 <[hidden email]>
To:        [hidden email],
Date:        10/29/2013 04:14 PM
Subject:        Re: [SPSSX-L] loop spssinc usage
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




I think the problem is the address network.
I run the same code reading a sav files inside "C:\\DB\*.sav" and it goes
well.
Do you have some issues with "spssinc process files" reading a shared
folder?
Thanks.



--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/loop-spssinc-usage-tp5722779p5722790.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