Posted: Fri Feb 21, 2003 12:19 pm Post subject: Send Message without RFH2
Acolyte
Joined: 28 Feb 2002 Posts: 63 Location: Sao Paulo - Brazil
Hi all,
I want to get a message that contains the MQRFH2 area and want to send it using the FTPSend Plug In (support pack #ia73), but the created remote file can´t have the MQRFH2, cause the plug-in adds the MQRFH2 data into the file.
Trying to remove the MQRFH2 (Set OutputRoot.MQRFH2 = NULL) I lose all the data of the message.
1. Removing MQRFH2
SET OutputRoot = InputRoot;
SET OutputRoot.MQRFH2 = NULL;
SET OutputRoot.MQMD.Format = 'MQSTR';
2. Copy only message Body and MQMD
SET OutputBody = InputBody;
SET OutputRoot.MQMD = InputRoot.MQMD;
SET OutputRoot.MQMD.Format = 'MQSTR'; _________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel
Joined: 28 Feb 2002 Posts: 63 Location: Sao Paulo - Brazil
When I remove the MQRFH2 I lost domain BLOB of my message.
The 2 options I lost domain BLOB. I create OutputRoot.WKSPACE.FTPSend.FileName
SET OutputRoot = InputRoot; -- (Copy Entire Message)
DECLARE ARQ CHAR;
SET ARQ = OutputRoot.MQRFH2."usr"."File";
-- File Name for FTPSend
SET OutputRoot.WKSPACE.FTPSend.FileName = '/home/wmqi/' || ARQ;
-- I need only data of message.
SET OutputRoot = InputRoot."BLOB";
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