home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / bit / listserv / sasl / 5579 < prev    next >
Encoding:
Text File  |  1993-01-12  |  2.0 KB  |  59 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!auvm!ZODIAC.BITNET!HAMER
  3. X-Envelope-to: sas-l@VTVM1.BITNET
  4. X-VMS-To: BITNET%"sas-l@vtvm1"
  5. Message-ID: <01GTFBEB9IV09YFPHJ@zodiac.rutgers.edu>
  6. Newsgroups: bit.listserv.sas-l
  7. Date:         Tue, 12 Jan 1993 08:40:00 EST
  8. Reply-To:     "Robert M. Hamer 908-932-2696" <HAMER@ZODIAC.BITNET>
  9. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  10. From:         "Robert M. Hamer 908-932-2696" <HAMER@ZODIAC.BITNET>
  11. Subject: RE: data set definition problem
  12. Lines: 45
  13.  
  14. ZINJMAN@UOG.PACIFIC.EDU writes:
  15.  
  16. >Can anyone out there help us with a problem we're encountering
  17. >with SAS-PC?:
  18.  
  19. >When creating a large data set in the Data Set Definition Mode,
  20. >is it possible to END the SAS session without completely
  21. >defining the DATA SET and then re-enter the Data Set
  22. >Definition Mode at a later time to continue defining
  23. >the same data set?
  24.  
  25. Under the assumption that the question you're asking can be restated
  26. as:  When using PC DOS SAS to create a dataset with the data step
  27. can you create part of a dataset in one session and then in a later
  28. different session add observations to the dataset the answer is yes.
  29.  
  30. Session one:
  31.  
  32. libname .......... whatever;
  33. Data abc;
  34.   infile .........  whatever;
  35.   input .........  statement;
  36.   run;
  37.  
  38.  
  39. And in a different session:
  40.  
  41. libname .......... whatever;
  42. Data xyz;
  43.   infile .........  whatever;
  44.   input .........  statement;
  45.   run;
  46.  
  47. proc append base=abc data=xyz;
  48.  
  49. (Look up append to make sure I have the syntax right; I don't have
  50. a manual here in front of me.  But you get the idea, don't you?)
  51. This requires that you have the "xyz" part of the data around
  52. for part of the SAS session before appending it to the existing
  53. dataset.
  54.  
  55. If you were using SAS 6.07 or above you would have available to
  56. you in the data step the MODIFY statement which would allow
  57. you to add observations directly to an existing dataset when
  58. paired with the output statement.
  59.