home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / informix / 1576 < prev    next >
Encoding:
Text File  |  1992-07-21  |  2.0 KB  |  59 lines

  1. Newsgroups: comp.databases.informix
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!mips!pacbell.com!pbhyf!rsprice
  3. From: rsprice@pbhyf.PacBell.COM (Steve Price)
  4. Subject: Re: A solution to SQL reformatting problem (fwd)
  5. Reply-To: rsprice@PacBell.COM (Steve Price)
  6. Organization: Pacific * Bell, San Ramon, CA
  7. Date: Tue, 21 Jul 1992 16:50:27 GMT
  8. Message-ID: <1992Jul21.165027.22493@pbhyf.PacBell.COM>
  9. References: <9213@emory.mathcs.emory.edu>
  10. Lines: 47
  11.  
  12. In article <9213@emory.mathcs.emory.edu> A.Heskett@bnr.co.uk (Tony Heskett) writes:
  13. >X-Informix-List-ID: <list.1328>
  14. >
  15. >
  16. >Steve Price writes (quoting cauhape@twg.com (Jeff Cauhape x7147))
  17. >
  18. >> >    I've found a solution for UNIX systems.
  19. >
  20. >Sort of ...
  21. >
  22. >/usr/gdc/fcddev 10> stty columns 1000
  23. >unknown mode: columns
  24. >
  25. >uname -a gives:
  26. >
  27. >OSx64 moses 5.0d-900928 0909i Pyramid-9815
  28. >
  29. >HP-UX gdc A.08.00 B 9000/855 116104132
  30. >
  31. I have the same problem on ATT 3B20.
  32. SO the solution is not a solution.  Too bad.  I tried to find a "column"
  33. setting referred to in UNIX: The Complete Reference, Stephen Coffin
  34. and in teh ATT 3B2 User and programmer references.  No such luck.
  35.  
  36. >> stty columns 80    # this is not really needed, since shell can not
  37. >>             # reset stty values for parent shell
  38. >
  39. >This *is* really needed, since this is a line driver thing, not a
  40. >shell environment thing.
  41. If "stty columns" worked at all you'd be correct!
  42.  
  43.  
  44. Sorry I did not test this before I went and advertised to the whole planet.
  45.  
  46. However, the general principle of using a shell as a wrapper for calls
  47. to INFORMIX programs, such as isql, does work and is often rather useful.
  48. You can even pipe the output into sed, awk, etc inside the shell to 
  49. sort or reformat the output.  If you use KSH you can do a lot of
  50. powerful output formatting -- so much so that you might use the ksh instead
  51. of ACE to do reports (assuming that you don't have INFORMIX-4GL).
  52.  
  53.  
  54. -- 
  55. Steve Price         UNIX: pacbell!pbhyf!rsprice    PHONE: (510)823-1951
  56.  
  57. Evil can be displaced but never eradicated, as all solutions breed new problems.
  58. Yet it is neccessary to keep on struggling toward solution.
  59.