Posted: Wed Mar 07, 2007 10:56 am Post subject: Anonymous Reference, creating PCF message & debug mode
Novice
Joined: 05 Nov 2003 Posts: 17 Location: Work
Using the technique published in an earlier thread http://www.mqseries.net/phpBB2/viewtopic.php?t=23254&highlight=pcf+esql I have created a flow that formats and sends a PCF request message. However, after reading the help on anonymous field references, I am not clear on how the 'parameters' in the message are getting created.
This code results in six fields in the final output message for the first parameter structure.
Code:
DECLARE refRequest REFERENCE TO OutputRoot.MQPCF;
...
SET refRequest.Parameter[1] = MQCA_Q_NAME;
SET refRequest.Parameter[1].* = inObjName;
When I step through the ESQL in debug mode I see Parameter[1] given value 2016 (MQCA_Q_NAME) but nothing else until I execute
Code:
SET OutputRoot.BLOB.BLOB = ASBITSTREAM(OutputRoot.MQPCF);
After that statement the first Parameter structure in the output message contains:
X'00000004' - MQCFT_STRING
X'00000028' - Length of the parameter structure
X’000007E0' - MQCA_Q_NAME
X’00000333’ - CCSID (819)
X’00000012’ - Length of the inObjName variable
Hex representation of inObjName
At what point are the fields that I do not explicitly set being created?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum