home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / misc / 3579 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.8 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!crcnis1.unl.edu!cse!slee
  2. From: slee@cse.unl.edu (Shiuh-Haw Lee)
  3. Newsgroups: comp.lang.misc
  4. Subject: HELP: RMCOBOL-85 -- Educational Version Restriction ???
  5. Message-ID: <1dpt3mINNpbr@crcnis1.unl.edu>
  6. Date: 11 Nov 92 03:02:14 GMT
  7. Organization: University of Nebraska--Lincoln
  8. Lines: 44
  9. NNTP-Posting-Host: cse.unl.edu
  10.  
  11.  
  12. Hi,
  13.   I am a student learning COBOL programming right now and the compiler that 
  14. I am using is the RMCOBOL-85 Educational Version which came with the book.  When
  15. I try to open 5 files, it gives me an error message saying "Educational Version
  16. Restriction."  
  17.  
  18.  
  19. <The following codes work fine.>
  20.  
  21. FILE-CONTROL.
  22.     
  23.     SELECT DATA-FILE ASSIGN TO INPUT-OUTPUT, "INVENT.DAT" 
  24.         ORGANIZATION LINE SEQUENTIAL.
  25.     SELECT SORT-WORK-FILE ASSIGN TO INPUT-OUTPUT.
  26.     SELECT BOOK-OUTPUT-FILE ASSIGN TO PRINT, "BOOKS4.LIS".
  27.     SELECT VIDEO-OUTPUT-FILE ASSIGN TO PRINT, "VIDEOS4.LIS".
  28.  
  29. <The following codes give error message.>
  30.  
  31. FILE-CONTROL.
  32.  
  33.     SELECT DATA-FILE ASSIGN TO INPUT-OUTPUT, "INVENT.DAT" 
  34.         ORGANIZATION LINE SEQUENTIAL.
  35.     SELECT SORT-WORK-FILE ASSIGN TO INPUT-OUTPUT.
  36.     SELECT SORTED-DATA-FILE ASSIGN TO INPUT-OUTPUT, "INVENT.SRT"
  37.         ORGANIZATION LINE SEQUENTIAL.  
  38.     SELECT BOOK-OUTPUT-FILE ASSIGN TO PRINT, "BOOKS4.LIS".  
  39.     SELECT VIDEO-OUTPUT-FILE ASSIGN TO PRINT, "VIDEOS4.LIS".
  40.  
  41.  
  42. I wonder if there is any other way that I can use 5 files besides getting a
  43. Commercial Version?  Is it possible to combine the last two lines in the above
  44. code into one line yet be able to do the same task?
  45.  
  46. Any help would be appreciated.  
  47. Thanks.
  48.  
  49.  
  50.  
  51. --
  52. +-------------------------------------------------------------------+
  53. | Shiuh H. Lee    |  E-mail :  slee@cse.unl.edu                     |
  54. +-------------------------------------------------------------------+
  55.