|
Art,
thank you for your answer. Sure I know about <paste>. Unfortunately, INSERT and PAGE BREAK in the output-file does not offer that option. Also there is no entry in the journal. And do if $casenum eq 1. print eject. end if. only produces two empty lines in my Word-Output (and before an empty log-field in the SPSS output). Or is there a trick? Regards, Laszlo Art Kendall: > try this. > do if $casenum eq 1. > print eject. > end if. > > also try exiting the menus via <paste> Which is a good programming > practice when you have done and redone the specific menu procedure until > you are satisfied with the output. > > > Art Kendall > Social Research Consultants > > On 2/9/2010 11:32 AM, Mongan Laszlo wrote: >> Hi all, >> >> I would like to insert a page break in my SPSS-Output, which I >> afterwards will export to Word with the OUTPUT EXPORT command. I know >> how to do this via menu, but isn't there a possibility to add some >> code in the syntax, after the frequency command where I would like to >> have a new page starting in the ouput? >> >> Many thanks, >> Laszlo __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
|
If I recall correctly PRINT EJECT has forced a new page since version 2 in 1972. try this syntax after changing the file destinations. Check the results to see if you get what you want and let me know. new file. INPUT PROGRAM. LOOP id=1 TO 30000. COMPUTE x = rnd(rv.uniform(.5,25.5)). COMPUTE y = rnd(rv.uniform(.5,10.5)). END CASE. END LOOP. END FILE. END INPUT PROGRAM. FORMATS id (F3.0) x y (f2). do if $casenum eq 1. print eject. print /'say something before the frequencies'. end if. FREQUENCIES vars = x y. do if $casenum eq 1. print eject. print/ 'say something after the frequencies'. end if. DESCRIPTIVES vars= x y /STATISTICS = all. do if $casenum eq 1. print eject. print / 'say something after the descriptives'. end if. do if $casenum eq 1. print eject. end if. FREQUENCIES vars = x y. do if $casenum eq 1. print eject. end if. DESCRIPTIVES vars= x y /STATISTICS = all. do if $casenum eq 1. print eject. end if. * Export Output. OUTPUT EXPORT /CONTENTS EXPORT=ALL LAYERS=PRINTSETTING MODELVIEWS=PRINTSETTING /DOC DOCUMENTFILE='C:\Users\Art\Documents\OUTPUT.doc' NOTESCAPTIONS=YES WIDETABLES=WRAP PAGESIZE=INCHES(8.5, 11.0) TOPMARGIN=INCHES(1.0) BOTTOMMARGIN=INCHES(1.0) LEFTMARGIN=INCHES(1.0) RIGHTMARGIN=INCHES(1.0). * Export Output. OUTPUT EXPORT /CONTENTS EXPORT=ALL LAYERS=PRINTSETTING MODELVIEWS=PRINTSETTING /PDF DOCUMENTFILE='C:\Users\Art\Documents\OUTPUT.pdf' EMBEDBOOKMARKS=YES EMBEDFONTS=YES. Art Kendall Social Research Consultants On 2/9/2010 5:11 PM, Mongan Laszlo wrote: ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (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
Art Kendall
Social Research Consultants |
|
In reply to this post by Mongan Laszlo
How about just running TITLE ''. That inserts an empty title with a page break. As a more general solution, the SPSSINC MODIFY OUTPUT extension command has the ability to insert page breaks in front of any output objects selected by the command. HTH, Jon Peck SPSS, an IBM Company [hidden email] 312-651-3435 p.s. Email forwarding from spss.com addresses to our new ibm addresses was scheduled to end on Feb 8.
Art, thank you for your answer. Sure I know about <paste>. Unfortunately, INSERT and PAGE BREAK in the output-file does not offer that option. Also there is no entry in the journal. And do if $casenum eq 1. print eject. end if. only produces two empty lines in my Word-Output (and before an empty log-field in the SPSS output). Or is there a trick? Regards, Laszlo Art Kendall: > try this. > do if $casenum eq 1. > print eject. > end if. > > also try exiting the menus via <paste> Which is a good programming > practice when you have done and redone the specific menu procedure until > you are satisfied with the output. > > > Art Kendall > Social Research Consultants > > On 2/9/2010 11:32 AM, Mongan Laszlo wrote: >> Hi all, >> >> I would like to insert a page break in my SPSS-Output, which I >> afterwards will export to Word with the OUTPUT EXPORT command. I know >> how to do this via menu, but isn't there a possibility to add some >> code in the syntax, after the frequency command where I would like to >> have a new page starting in the ouput? >> >> Many thanks, >> Laszlo __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
| Free forum by Nabble | Edit this page |
