| Sorry Mike. Your example was for an MCCMessage datatype, not MCCReply.
Richard, I'm not sure if the extra level is needed. The following is
an ILV dump of the command that returns a hard-coded MCCReply argument.
This is for the PM_TESTER module which is used to test datatype
conversion routines.
The response ID is 1. Two arguments are returned, of which Argument
ID 6 is the one with MCCReply datatype:
POLE$ mana/enter
DECmcc (X1.1.0)
MCC> dump mcc 0 pm_tester mccreplyarg
FCL PM Arguments before call_function:
AES DUMP of ENTITY IN:
depth=2 class code= 7 instance = 0 class code= 11 instance = no curlen
ILV DUMP of INP:
[ 0 ] (
[ 6 ] (
[ 5 ]
)
)
ILV DUMP of INQ: in_q is NULL
ATTRIBUTE PARTITION: 10
*******************************************
FCL PM Arguments on return from call_function:
ILV DUMP of OUTP:
[ 1 ] (
[ 100 ] 01 0b 4d 43 43 52 65 70 6c 79 41 72 67
[ 6 ] (
[ 1 ] 0b
[ 2 ] 78 00 08 00
[ 3 ] 03 26 80 49
[ 4 ] 03
[ 5 ] (
[ 0 ] (
[ 1 ] 01
[ 2 ] 07
[ 3 ] 00
[ 4 ] 00
[ 5 ]
)
[ 1 ] (
[ 1 ] 01
[ 2 ] 0b
[ 3 ] 00
[ 4 ] 00
[ 5 ]
)
)
[ 6 ] 0a
[ 7 ] (
[ 222 ] (
[ 6 ] 6e 61 6d 65 -- name
)
)
[ 8 ] (
[ 3 ] (
[ 1 ] 01
[ 4 ] 08 ae
[ 16 ] 73 74 72 69 6e 67 -- string
)
)
[ 9 ] (
[ 0 ] (
[ 1 ] 01
[ 2 ] 07
[ 3 ] 00
[ 4 ] 00
[ 5 ]
)
[ 1 ] (
[ 1 ] 01
[ 2 ] 0b
[ 3 ] 00
[ 4 ] 00
[ 5 ]
)
)
[ 10 ] 10 00 0e 02 cc e3 16 00 10 00 00 01 00 00 00 00
[ 11 ] (
[ 1 ] (
[ 1 ] 01
[ 4 ] 08 ae
)
)
[ 12 ] (
[ 0 ] (
)
)
)
)
AES DUMP of ENTITY OUT:
depth=2 class code= 7 instance = 0 class code= 11 instance = no curlen
CVR returned:
%MCC-S-RESPONSE, success with response reply
MCC 0 PM_TESTER
AT 25-SEP-1990 08:54:25
Dump of MCCReplyArg Successful
MCCReplyArg = 11, X0.8.0,
%MCC-S-RESPONSE, success with
response reply,
Test,
MCC PM_TESTER ,
Null Partition,
BooleanArg = True,
Unsigned32Arg = 2222,
Latin1StringArg = "string",
MCC PM_TESTER ,
Test Successful,
BooleanArg = True,
Unsigned32Arg = 2222
MCC>
*************************************
Christine
|
|
Thanks, Christine. The trick is to not have any null pointers in the
MCCReply structure. Even if in_p is null, the field in the reply list
has to point at a valid descriptor for a null ILV buffer. If there isn't
an out_entity, set the field to in_entity.
|