home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / vms / 12741 < prev    next >
Encoding:
Text File  |  1992-07-23  |  2.3 KB  |  45 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!sal.wisc.edu!rat!cindy!RGOLDSTONE
  3. From: rgoldstone@OAVAX.CSUCHICO.EDU (Robin, Girl Wonder)
  4. Subject: problem reading COBOL print file
  5. Message-ID: <1992Jul23.230551.11572@ecst.csuchico.edu>
  6. Sender: news@ecst.csuchico.edu (no news is good news)
  7. Nntp-Posting-Host: oavax.csuchico.edu
  8. Reply-To: rgoldstone@OAVAX.CSUCHICO.EDU
  9. Organization: California State University, Chico
  10. Date: Thu, 23 Jul 1992 23:05:51 GMT
  11. Lines: 32
  12.  
  13. This is probably not really an OS question, but I don't know anything about
  14. COBOL and am unable to help one of my users who is trying to do something
  15. funky with COBOL print files.  Basically he is writing a program that
  16. will take the "print file" output from a COBOL program, and print it on
  17. a local, terminal-attached printer.  Normally, COBOL print files contain
  18. carriage control info which is interpreted by a line printer.  To print
  19. to the local (datasouth printer) his program needs to read this carriage
  20. control info and interpret it, then send the appropriate commands to the
  21. datasouth.  Below is a detailed description of the problem in his words.
  22. It seems that when he trys to open this print file within his COBOL program
  23. to process it, RMS is stripping off the carriage control info he needs to
  24. look at.  If someone understands this stuff and can offer me/him some
  25. suggestions, I would appreciate it.  You can reply to this message, or if
  26. you have further questions, please direct them to him:
  27. Rich Meade  rmeade@oavax.csuchico.edu
  28.  
  29. Thanks in advance.
  30. -------------------------Rich's message follows------------------------------
  31.  
  32. When COBOL writes a print file, it inserts forms control bytes directly
  33. into the file. These bytes are called a VFC header.  If you read a print
  34. file that has been created on mass storage, RMS strips the VFC header
  35. information from the record before returning it to the COBOL record area.
  36. In this process the forms control information is lost.  I would like to be
  37. able to read a print file and retain the forms control information.  Is there
  38. a way to do this?  I would prefer a method in COBOL.
  39.  
  40.  
  41. ***********************************************************************
  42. Robin Goldstone, Systems Software Specialist
  43. California State University, Chico  Computing Services
  44. rgoldstone@oavax.csuchico.edu
  45.