External routine access

Bob Comeau bcomeau@crossley.ca
Mon, 27 Aug 2001 14:39:22 -0300


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.