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?
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...
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?
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
- 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...