LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2010)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 22 Oct 2010 12:18:44 -0700
Reply-To:     Bruce Weaver <bruce.weaver@hotmail.com>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Bruce Weaver <bruce.weaver@hotmail.com>
Subject:      Re: Running a Syntax File at the start of each SPSS session &
              Formatting/Wrap text in syntax editor
In-Reply-To:  <AANLkTikNY37qXw1ktaz4ZwUd5U-osPow7jxgwACem7ss@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

From the Help files:

Startup Scripts

You can create a script that runs at the start of each session and a separate script that runs each time you switch servers. For Windows you can have versions of these scripts in both Python and Basic. For all other platforms the scripts can only be in Python.

• The startup script must be named StartClient_.py for Python or StartClient_.wwd for Basic.

• The script that runs when switching servers must be named StartServer_.py for Python or StartServer_.wwd for Basic.

• The scripts must be located in the scripts directory of the installation directory--located at the root of the installation directory for Windows and Linux, and under the Contents directory in the application bundle for Mac.

• On Windows, if the scripts directory contains both a Python and a Basic version of StartClient_ or StartServer_ then both versions are executed. The order of execution is the Python version followed by the Basic version.

• If your system is configured to start up in distributed mode, then at the start of each session any StartClient_ scripts are run followed by any StartServer_ scripts. Note: The StartServer_ scripts also run each time you switch servers, but the StartClient_ scripts only run at the start of a session.

--- end of Help ---

The startup script can no doubt call the syntax file that defines your macros.

J Sutar wrote: > > a) I've love to know how to do this also! What you could do otherwise is > to > run the file using the INSERT command but you would have to do this > manually > at each session.... > > b) Text editors can crop your lines to a specified number of characters. I > know Komodo can do this but TextPad perhaps could also, which is free. > > > On 22 October 2010 15:35, Ratna Wynn <ratnawynn@gmail.com> wrote: > >> Hi >> >> I have two questions and would appreciate any guidance.* *I have SPSS 18 >> currently. >> >> a) I have a file where I have a number of macros. I would like these to >> run >> at the start of each SPSS session. How do I get SPSS to automatically run >> them each time. >> >> b) I sometime have to scroll right to see the text on my syntax editor. >> Is >> it possible to wrap text? Does anyone know how to do this. >> >> Thanks, >> >> Ratna >> > >

----- -- Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.

-- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Running-a-Syntax-File-at-the-start-of-each-SPSS-session-Formatting-Wrap-text-in-syntax-editor-tp3232350p3232819.html Sent from the SPSSX Discussion mailing list archive at Nabble.com.

===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD


Back to: Top of message | Previous page | Main SPSSX-L page