Login  Register

Re: Alter type error in version 28

Posted by Bruce Weaver on Mar 09, 2022; 12:07am
URL: http://spssx-discussion.165.s1.nabble.com/Alter-type-error-in-version-28-tp5740964p5740966.html

Hi Art.  How does your workaround solution differ from this?  

ALTER TYPE ALL (A=AMIN).

It also works, and I see no obvious difference in the output.  


Art Kendall wrote
The documentation says there should be default output.

ALTER TYPE varlist([input format = ] {output format }) [varlist...]
. . .
[/PRINT {[ALTEREDTYPES**] [ALTEREDVALUES]}]
{NONE }
** Default if subcommand omitted.

But the command
ALTER TYPE ALL (A=AMIN) /PRINT.

gets this error
Warnings
Subcommand PRINT is empty.
Execution of this command stops.

The workaround is
ALTER TYPE ALL (A=AMIN) /PRINT ALTEREDTYPES ALTEREDVALUES.

Demo_Alter_Type_error.sps
example.csv
Alter_Type.spv
--
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/).