do external subroutines:

Deskin, Bob Bob.Deskin@Cognos.COM
Tue, 4 Sep 2001 19:13:24 -0400


You can of course call C externals from QUICK or PowerHouse Web on MPE/iX.
If you're using an already programmed routine (or probably even if you're'
not), then use the DO EXTERNAL option with parentheses as in DO EXTERNAL
name (parm1, parm2, ...). This passes one address per parm.

As an aside, the other version of DO EXTERNAL with the PASSING option is
really not conducive to general 3GL programming as it requires as very
specific set of parameters.

Bob Deskin              
PowerHouse Web Product Manager
Application Development Tools, Cognos Inc.
bob.deskin@cognos.com
(613) 738-1338 ext 7268
3755 Riverside Drive
Ottawa ON K1G 4K9 CANADA


-----Original Message-----
From: Richard Sheehan [mailto:sheerich@isu.edu]
Sent: September 4, 2001 5:19 PM
To: PowerHouse List
Subject: do external subroutines:


Hello fellow listers,

Platform HPe3000, PowerHouse 8.29D3, PowerHouse Web 2.29D3

We are going to make a first attempt at calling an external subroutine
from quick.

The external subroutine will be either the 3DES or the IDEA decryption
algorithm already publicly available via C.  One of our Fellow
Programmers suggests that converting these to COBOL could be a time
consuming feat.

Here's my request for info:

The Cognos PowerHouse ® 4GL QDESIGN Reference (version 8.1) makes a
distinction between DO EXTERNAL (MPE/iX) and DO EXTERNAL (UNIX).  The
external C subroutine falls under the DO EXTERNAL (UNIX).  The
discussion and example in this section eludes that C can be used in the
DO EXTERNAL (MPE/ix) - So, will the external C routine function under
MPE/iX?

The version 8.0 Reference did not make this distinction.

Assuming external C routines are supported, does anyone have some advice
or pointers (not the C '*' ones) for implementing External C routines
from QUICK on MPE/iX?

TIA

-- 
Richard Sheehan,
Administrative Systems - IT Programmer Analyst Associate
Idaho State University Computing & Communications
Campus Box 8037, Pocatello, ID 83209-8037
Phone: 208.282.3861 - Fax: 208.282.3673
Email: sheerich@isu.edu

= = = = = = = = = = = = = = = = = = = = = = = = = = = =
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.
This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate, or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender by
e-mail promptly that you have done so.  Thank You.