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 (March 2001)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 9 Mar 2001 10:13:37 -0600
Reply-To:     "Marso, David" <dmarso@SPSS.COM>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         "Marso, David" <dmarso@SPSS.COM>
Subject:      Re: write ascii file

Hauke, How about:

DO IF $CASENUM = 1 . WRITE OUTFILE "F:\Temp\Youroutfile.txt" / "descriptive text line 1" . WRITE OUTFILE "F:\Temp\Youroutfile.txt" / "descriptive text line 2" . WRITE OUTFILE "F:\Temp\Youroutfile.txt" / "descriptive text line 3" . WRITE OUTFILE "F:\Temp\Youroutfile.txt" / "descriptive text line 4" . END IF . WRITE OUTFILE "F:\Temp\Youroutfile.txt" / ALL . EXECUTE .

Works for me. HTH,David Marso

------------------- Date: Thu, 8 Mar 2001 18:50:13 +0100 From: "Petersen, Hauke" <hauke.petersen@INTERACTIVEMEDIA.DE> Subject: write ascii file

Hello all,

i want to write an ASCII-file, one line for every line of my working-file.

No big deal so far.

But i want to prefix that file with several lines, containing descriptive text ...

descriptive text line 1 descriptive text line 2 descriptive text line 3 descriptive text line 4 data line 1 - written using write file ... data line N - written using write file

There has to be a simple way to achive the result.

Using an ASCII-Editor to insert the text manually is not an option, as i want to use it in a macro, automating things.

TIA, Hauke


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