loops - Export frequencies tables and histogram to excel sheets in macro -
i'm trying export table , histogram created through loop, each different excel sheets. works, first histogram gets exported though of them created in different result windows. in rest of sheets "image unavailable" message appears, table part saved properly. these macros:
define create (!pos !charend('/')) !do !i !in (!1) output new. output name !i. frequencies variables=!i /format=notable /percentiles=1.0 99.0 /statistics=stddev minimum maximum mean median kurtosis sekurt /histogram normal /order=analysis. !doend !enddefine. define save (!pos !charend('/')) !do !i !in (!1) output export name = !i /contents export=all layers=all modelviews=all /xls documentfile='c:\users\ildefonso\documents\output.xls' operation=createsheet sheet=!quote(!concat(!i)) location=lastcolumn notescaptions=yes. !doend !enddefine. create var1 var2/. save var1 var2 /. any evident mistake making? or more spss-way of going it? need solve without installing extra. using spss v22 on windows 10.
Comments
Post a Comment