home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / bit / listserv / dbasel / 842 < prev    next >
Encoding:
Text File  |  1992-08-21  |  2.4 KB  |  59 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!HP.UWSUPER.EDU!SSCHMIDT
  3. X-Popmail-Charset: English
  4. Message-ID: <31397.sschmidt@hp.uwsuper.edu>
  5. Newsgroups: bit.listserv.dbase-l
  6. Date:         Fri, 21 Aug 1992 08:43:12 CST
  7. Sender:       "Discussion on the use of the dBase language and related
  8.               dialects" <DBASE-L@NMSUVM1.BITNET>
  9. From:         "Mr. Stanton W. Schmidt" <sschmidt@HP.UWSUPER.EDU>
  10. Subject:      Re: help with pic s9(05) sign trailing.
  11. Lines: 46
  12.  
  13. On Fri, 21 Aug 1992 08:29:14 EST,
  14.   Joel Saunders writes:
  15.  
  16. >On Thu, 20 Aug 1992 14:17:32 CST Mr. Stanton W. Schmidt said:
  17. >>I have a data file produced by a mainframe application that is ascii text.
  18. >>I want to load the file into a dBase IV file.  The problem is that some of
  19. >>the numeric fields were described in the mainframe cobol program as
  20. >>   fieldname    pic  S9(05) sign trailing.
  21. >>what this does is put the sign into the last digit, so that when you look
  22. >>at the ascii representation of a number the last digit appears as a letter,
  23. >>depending on whether it is negative or not and the actual value of the
  24. >>digit.  ex. 123 becomes 12C and -123 becomes 12L
  25. >>Is there a way to tell dBase how to handle this.
  26. >>
  27. >>--
  28. >>Stanton W. Schmidt
  29. >>University of Wisconsin-Superior
  30. >>sschmidt@uwsuper.edu
  31. >
  32. >I KNOW THAT THIS ISN'T THE ANSWER YOU'RE LOOKING FOR BUT IF YOU ARE GOING TO
  33. >USE MAINFRAME DATA ON THE MICRO, THE BEST WAY IS TO HAVE YOU MAINFRAME PROGRAMS
  34. >DESCRIBE THE DATA IN COBOL "NUMERIC DISPLAY FORMAT".
  35. >
  36. >In the example that you give the s9(5) should be changed to -(5)9 .  This will
  37. >cause the number to be created with a "floating" minus sign to the left of the
  38. >number.
  39. >
  40. >Most other numeric fields contain decimal parts.  In this case, for example
  41. >a s9(7)v99 field should be brought down to the PC as -(7)9.99 . We have
  42. >standardized on this approach for creating mainframe downloads, and have since
  43. >had no problems.
  44. >
  45. >Hope this helps..... Joel Saunders
  46.  
  47. Nice try Joel, but the data does not come from our mainframe it comes
  48. General Electronic Services in Iowa, and is received via a communication
  49. package they provided, it is then formated by that package into the format
  50. I described which is then read by our mainframe with the cobol use of sign
  51. trailing.  I had hoped I could read it with dbase without writing some kind
  52. of conversion routine.
  53. Thanks anyway
  54.  
  55. --
  56. Stanton W. Schmidt
  57. University of Wisconsin-Superior
  58. sschmidt@uwsuper.edu
  59.