External routine access

support@bookwood.com support@bookwood.com
Tue, 28 Aug 2001 10:19:43 -0500


Since they actually enter the value, then you convert it to a decimal, why
not store the originally entered value also?

You keep the actual user input along with the converted value as an audit
of what was really entered. (Just in case of a question arising later).

"Normalize until it hurts, denormalize until it works."


At 02:39 PM 8/27/01 -0300, Bob Comeau wrote:
>A bit more explanation seems to be in order.
>
>We are on an HP3000 run 8.19c1.
>
>The report is for an adhoc inquiry retrieving, usually, just a few records
>at a time.
>It generates a report to a disc file that is viewed on screen afterward
>after prompting
>for a couple parameters.  For each record there are seven values stored in
>numeric
>fields varying from 2 to 4 implied decimals.  The unit for the value stored
>is linear
>meters for sortability and efficiency.  The users would prefer to see a
>converted value
>on the report ie 1/2" instead of .0127, or 8'2-3/4" instead of 2.5083,
>since this is actually how they entered it in the first place.
>
>I can get down to whole feet and inches fairly simply, and, if I limit the
>fractions to say 16ths,
>I can put together a case type statement to handle the fractional part based
>on ranges.  In
>fact I probably could have done it in the time I've spent trying to find a
>way around it.
>I just thought it would simpler if I could just call the same routine that
>did the initial
>conversion for the main Cobol program, it works in either direction.  I have
>had other
>occasions where a similar capability would have been useful and just thought
>I'd
>throw out a line to see if anybody else had done something like this.
>
>Bob
>
>-----Original Message-----
>From: powerh-l-admin@cube.swau.edu
>[mailto:powerh-l-admin@cube.swau.edu]On Behalf Of Nancy Tietz
>Sent: Monday, August 27, 2001 11:49 AM
>To: 'Bob Comeau'; powerh-l@lists. swau. edu (E-mail)
>Subject: RE: External routine access
>
>
>Some people use QUICK to run a Cobol subroutine for each record in an input
>file. It could output a PHD-defined file that could be used in your final
>report.  Look under Ghost screens and transaction processing in the manual.
>nt
>-----Original Message-----
>From: Bob Comeau [mailto:bcomeau@crossley.ca]
>Sent: Monday, August 27, 2001 10:24 AM
>To: powerh-l@lists. swau. edu (E-mail)
>Subject: External routine access
>
>
>Is there a way, preferably from QUIZ, to call an external routine pass it a
>value,
>have it do a calculation and return a result that is reported on as if it
>were
>defined within the QUIZ report?
>
>I have COBOL routine which converts a liner metric measure to feet and
>inches
>including fractional inches to a text string.  I would rather not have to
>rewrite this
>in QUIZ.  If somebody has already done that I would be interested in seeing
>it.
>
>Bob Comeau
>Systems Programmer Analyst
>Crossley Carpet Mills Ltd.
>
>
>= = = = = = = = = = = = = = = = = = = = = = = = = = = =
>Mailing list: powerh-l@lists.swau.edu
>Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
>Unsubscribe: "unsubscribe" in message body to
>powerh-l-request@lists.swau.edu
>http://lists.swau.edu/mailman/listinfo/powerh-l
>This list is closed, thus to post to the list you must be a subscriber.
>
>= = = = = = = = = = = = = = = = = = = = = = = = = = = =
>Mailing list: powerh-l@lists.swau.edu
>Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
>Unsubscribe: "unsubscribe" in message body to
>powerh-l-request@lists.swau.edu
>http://lists.swau.edu/mailman/listinfo/powerh-l
>This list is closed, thus to post to the list you must be a subscriber.
>
>
>= = = = = = = = = = = = = = = = = = = = = = = = = = = =
>Mailing list: powerh-l@lists.swau.edu
>Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
>Unsubscribe: "unsubscribe" in message body to powerh-l-request@lists.swau.edu
>http://lists.swau.edu/mailman/listinfo/powerh-l
>This list is closed, thus to post to the list you must be a subscriber.


Bookwood Systems, Limited
118 East Wisconsin Street
Delavan WI 53115
262 728-1675 Voice 
262 728-1682 Fax
mailto:support@bookwood.com
http://www.bookwood.com