Hari
2005-05-10 12:31:11 UTC
Hi,
I downloaded Raynald's book from SPSS site and came across the Include
command and wanted to try it out.
I created a folder named examples with a sub- folder Commands in it and
then renamed one of my huge Syntax file as "report groups.sps" and
pasted in --c:\examples\commands-- folder.
Then I ran the below syntax.
FILE HANDLE commands /NAME='c:\examples\commands'.
INCLUDE FILE = "commands\report groups.sps".
The error I get is
run the bwlow syntax
*FILE HANDLE commands /NAME='c:\examples\commands'.
INCLUDE FILE = "c:\examples\commands\report groups.sps".
then everything works fine.
Please tell why the File Handle doesnt work.
Regards,
Hari
India
I downloaded Raynald's book from SPSS site and came across the Include
command and wanted to try it out.
I created a folder named examples with a sub- folder Commands in it and
then renamed one of my huge Syntax file as "report groups.sps" and
pasted in --c:\examples\commands-- folder.
Then I ran the below syntax.
FILE HANDLE commands /NAME='c:\examples\commands'.
INCLUDE FILE = "commands\report groups.sps".
The error I get is
Error # 3038 in column 28. Text: c:\examples\commands
The file specification given for the NAME subcommand is not valid.
This command not executed.
INCLUDE FILE = "commands\report groups.sps".The file specification given for the NAME subcommand is not valid.
This command not executed.
Error # 34 in column 16. Text: commands\report groups.sps
SPSS cannot access a file with the given file specification. The file
specification is either syntactically invalid, specifies an invalid
drive,SPSS cannot access a file with the given file specification. The file
specification is either syntactically invalid, specifies an invalid
specifies a protected directory, specifies a protected file, or
specifies anon-sharable file.
This command not executed.
On the other hand If I comment out, the --File Handle-- line above andThis command not executed.
run the bwlow syntax
*FILE HANDLE commands /NAME='c:\examples\commands'.
INCLUDE FILE = "c:\examples\commands\report groups.sps".
then everything works fine.
Please tell why the File Handle doesnt work.
Regards,
Hari
India