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