Here is one way to get a lot of those things into XL:
file handle temp /name="/Users/rick/tmp/example.sav".
file handle xl /name="/Users/rick/tmp/example.xlsx".
oms select tables
/if subtypes='Variable Information' /destination format=sav outfile=temp.
display variables.
omsend.
get file temp /drop Command_ Subtype_ Label_.
SAVE TRANSLATE OUTFILE=xl /TYPE=XLS /VERSION=12
/MAP /FIELDNAMES VALUE=NAMES /CELLS=VALUES /REPLACE
/DROP=Command_ Subtype_ Label_ Role WriteFormat Position.
erase file temp.
Substitute your path/file names where I have mine in the FILE HANDLE commands.
------------------------------
Rick Marcantonio
Quality Assurance
IBM
------------------------------
Original Message:
Sent: Wed February 23, 2022 07:01 AM
From: xq OW
Subject: export variable label and column width to excel or csv export
Dear all,
I have a question, how can I export all variable names with label and column width and measure as variable view showed to excel or csv file?
thanks!
regards,
------------------------------
xq OW
------------------------------
#SPSSStatistics