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 1997, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 12 Mar 1997 12:19:09 -0500
Reply-To:   jp@algene.com
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   J-P Le Cruguel <jp@ALGENE.COM>
Organization:   Algene Biotechnologies
Subject:   PUT statement
Content-Type:   text/plain; charset=us-ascii

Hi,

I am trying to create a text file which would have a structure like:

informations about the file (6 lines, some text I write)

information about obs 1 (6 lines) (from a dataset) information about obs 2 (6 lines) information about obs 3 (6 lines) ... information about last obs (6 lines)

information about the EOF "end"

My problem is to separate the 3 blocks within the same data step. It creates as many blocks as I have observations in my dataset. What I would like is to get the first and the lst blocks only once. I can make 3 different text files and append them manually, but I want something cleaner and more straigthforward.

Here is what my pgm looks like:

DATA _NULL_; SET one; FILE "n:\usagers\jean-p\pedigree\paule\export\cyrillic.dat"; PUT #1 'Name'; PUT #2 'Family #1'; PUT #3 'Alzheimer'; PUT #4 '1'; PUT #5 '1'; PUT #6 'Marker 1';

PUT @1 enfant 8. @10 pere 8. @20 mere 8. @30 sex 8. @35 affected 8. ; * line 1; PUT @1 all1 3. ' / ' @5 all2 3. ; * line 2; PUT @1 nom $15. @20 prenom $15. ; * line 3; PUT @1 ' ' ; * line 4; PUT @1 ' ' ; * line 5; PUT @1 ' ' ; * line 6;

PUT 'END';

RUN;

--

================================================================== Jean-Pierre Le Cruguel ================================================================== Algene Biotechnologies Voice: (514) 340 3539 (ext: 3253) 4565 Queen Mary Fax: (514) 340 3545 MONTREAL(QUEBEC) H3W 1W5 E-mail: jp@algene.com CANADA ==================================================================


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