Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Key position API

1 view
Skip to first unread message

John

unread,
Nov 5, 2003, 5:35:58 PM11/5/03
to
Hi all

Does anyone know if there is an API to return the keylock position? I want
to determine this from a CL pgm.
I noticed the Retrieve IPL Attributes (QWCRIPLA) API but it only returns the
information as shown in the DSPIPLA screen which doesn't reflect the true
nature of the keylock position.

Anyone have any ideas?

Carsten Flensburg

unread,
Nov 6, 2003, 4:01:47 PM11/6/03
to
Hi John,

The _MATMATR1 MI builtin can do that using option x'0168' - you can find the
details here:

http://publib.boulder.ibm.com/iseries/v5r1/ic2924/tstudio/tech_ref/mi/MATMATR.htm

- If you're interested in can email you a short RPG/IV sample performing the
task.

Best regards,
Carsten Flensburg

"John" <j...@thisplace.com> skrev i en meddelelse
news:oXeqb.9860$Mn.2...@news.xtra.co.nz...

John

unread,
Nov 6, 2003, 5:10:00 PM11/6/03
to
"Carsten Flensburg" <flen...@novasol.dk> wrote in message
news:3faab5fc$0$267$4d4e...@news.dk.uu.net...

Thanks Carsten

I was hoping there may have been an API but obviously not. I've never
programmed using a MI before and I seem to vaguely recall that you need a
program to compile these things?

Karl Hanson

unread,
Nov 6, 2003, 6:16:43 PM11/6/03
to
John wrote:


You are probably thinking of writing complete "MI programs". I believe

Carsten is refering instead to the MATMATR MI "Library Function". These

functions are more like APIs, in that they can be called directly by ILE

programs, eg written in C or RPG. There is also some information about

them here, in a C/C++ manual:
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c0924180.pdf

I am not very familiar with RPG, but I believe the key interface piece

needed is a function prototype definition. Here is a web page that may

be useful:
http://www.opensource400.org/callc.html

--
Karl Hanson

Carsten Flensburg

unread,
Nov 7, 2003, 8:14:41 AM11/7/03
to
Hi John,

- No, Karl is right - it is a builtin type of API, available to all ILE
compilers. The builtin encapsulates the referenced MI function and is called
using a procedure interface. As mentioned, if you're interested I can email
you an example ready to compile.

Best regards,
Carsten Flensburg

"John" <j...@thisplace.com> skrev i en meddelelse

news:ZEzqb.10839$Mn.2...@news.xtra.co.nz...

0 new messages