IBM Support

Setting variable lengths in SPSS Statistics for multiple variables by using syntax

Troubleshooting


Problem

How to set variable lengths in SPSS Statistics for multiple variables by using syntax?

Resolving The Problem


* The following ALTER TYPE command changes all of your String Variables in your data set to a Width of 50.
ALTER TYPE ALL (A=A50).

* The following ALTER TYPE command changes all of your Numeric Variables in your data set to a Format of 8.5.
ALTER TYPE ALL (F=F8.5).

* On a Windows computer, if you put your cursor on the ALTER TYPE command and press F1 on your keyboard, a browser opens to a context-sensitive help text that explains all about the ALTER TYPE command options.
* On a Mac or Windows computer, you can open up the help menu and search on the following 'Overview (ALTER TYPE command)'.

    You will be taken to the Overview of the ALTER TYPE command.

[{"Product":{"code":"SSLVMB","label":"IBM SPSS Statistics"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Not Applicable","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 April 2020

UID

swg21667283