The really useful part of this functions Key Generate is not having to enumerate alternate keys for padding.
But it does not return a complete key padded for trailing empty fields in external key files as shown below.
I haven't checked it yet against the internal files as empty trailing fields are less likely by design.
So enumeration of keys or hard coding padding data may still be necessary.
Wondering if I am missing something here?
I would expect and prefer to mid/stp the result if a partial key was wanted.
Still on Version 1410.
01 OPEN (1)"OP9002" ! External Prime key file, Key 3 is 4 Fields, 33 bytes - 20:7:2:4
02 cmd$="key(1,key=""00190579172397"":""5850720"":"" "":"" "",kno=3)"
03 x$=EVS(cmd$)
04 PRINT HTA(x$)
05 PRINT LEN(x$)
06 cmd$="key(1,key=""00190579172397"":""5850720"":"""":"""",kno=3)"
07 x$=EVS(cmd$)
08 PRINT HTA(x$)
09 PRINT LEN(x$)
10 cmd$="key(1,key=""00190579172397"":""5850720"",kno=3)"
11 x$=EVS(cmd$)
12 PRINT HTA(x$)
13 PRINT LEN(x$)
14 CLOSE (1)
15 END
-;run
303031393035373931373233393700000000000035383530373230202020202020
33
3030313930353739313732333937000000000000353835303732300000
29
303031393035373931373233393700000000000035383530373230
27