* (Q) I would like to be to do a * SYSFILE INFO FILE = 'G:\wherever\whatever.sav'. * and then remove all of the output except the portion between the print * back of the command and a point up to but not including * the "variables information". * Any suggestions? *Is it possible to make a macro that takes a filespec as a token, executes a SYSFILE INFO on that filespec, and then calls a script that trims out all of the variable information, leaving just the info about the file? * (A) Posted by rlevesque@videotron.ca to SPSSX-L list on 2001/09/15. * Modify the path of the script in the macro as required. SET MPRINT=no. *///////////////////////////////////. DEFINE !getinfo (file=!CMDEND) SYSFILE INFO FILE =!file. SCRIPT 'd:\data\scripts\outputdoc\Extract info from Text Output.SBS'. !ENDDEFINE. *///////////////////////////////////. SET MPRINT=yes. !getinfo file='c:\program files\spss\Employee data.sav'. !getinfo file='c:\program files\spss\World95.sav'.