ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » URGENT-Set value in Expiry field in MQMD

Post new topic  Reply to topic
 URGENT-Set value in Expiry field in MQMD « View previous topic :: View next topic » 
Author Message
bhavyabhandari
PostPosted: Thu May 17, 2007 12:25 am    Post subject: URGENT-Set value in Expiry field in MQMD Reply with quote

Apprentice

Joined: 09 Nov 2006
Posts: 33

Hi
i am using the following codes for setting value in expiry field in MQMD but while deploying i am getting error in eventlog
(
User defined attribute must specify an initial value expression.

User defined attributes must either be given an initial value on the DECLARE statement or be given a value at deploy time.

Set the value of the User Defined Attribute at deploy time.
)
The codes which i have used:
1.
SET OutputRoot.MQMD.Expiry = CAST(CURRENT_TIME + CAST(30 AS INTERVAL SECOND) AS GMTTIMESTAMP);

2. SET OutputRoot.MQMD.Expiry = 1500;

Both these are giving errors.
Kindly tell the code for setting the value.
Thanks in advance
Back to top
View user's profile Send private message Yahoo Messenger
marcin.kasinski
PostPosted: Thu May 17, 2007 12:32 am    Post subject: Re: URGENT-Set value in Expiry field in MQMD Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

This problem refers to totally different part of your code.

Are you using UDP in your flow ?

Check EXTERNAL variable in your ESQL .

It should be initialized or you should set UDP value in configure tab.
_________________
Marcin


Last edited by marcin.kasinski on Thu May 17, 2007 2:21 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
bhavyabhandari
PostPosted: Thu May 17, 2007 12:43 am    Post subject: Re: Reply with quote

Apprentice

Joined: 09 Nov 2006
Posts: 33

Wel I am not using UDP in the flow..
Still it is giving the errors as mentioned,...
Back to top
View user's profile Send private message Yahoo Messenger
marcin.kasinski
PostPosted: Thu May 17, 2007 1:02 am    Post subject: Re: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

bhavyabhandari wrote:
Wel I am not using UDP in the flow..
Still it is giving the errors as mentioned,...



How about ESQL.

Is there EXTERNAL keyword ?
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
bhavyabhandari
PostPosted: Thu May 17, 2007 1:53 am    Post subject: Reply with quote

Apprentice

Joined: 09 Nov 2006
Posts: 33

welll i have not used external in the esql....

can u plese tell me the code for setting the value in the expiry field as i am trying it for the last 4 hours and still i am not able to do it.

thanks
Back to top
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Thu May 17, 2007 2:14 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

bhavyabhandari wrote:
can u plese tell me the code for setting the value in the expiry field as i am trying it for the last 4 hours and still i am not able to do it.


The 2. code you're using is fine (Expiry is an integer not a timestamp).

What leads you to believe the error you're quoting is connected to the code you're quoting? As the previous posts have mentioned, there's no obvious connection between setting the expiry and a missing UDP.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Thu May 17, 2007 2:16 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

bhavyabhandari wrote:
welll i have not used external in the esql....

can u plese tell me the code for setting the value in the expiry field as i am trying it for the last 4 hours and still i am not able to do it.

thanks


I'm trying to tell you that this is not problem with code you showed here.

Please comment this lines and you will get the same error.


What I suggest :

- clear Event logs in toolskit.
- check flows in bar (if it has UDP defined)
- check ESQL (is there EXTERNAL keyword)
- deploy bar.
- check Event logs again.

If you get the same error you should have UDP defined or EXTERNAL keyword in your esql.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
kishoreraju
PostPosted: Thu May 17, 2007 12:46 pm    Post subject: Reply with quote

Disciple

Joined: 30 Sep 2004
Posts: 156

did you checked the event log . it will show you the correct error. like what was missing in the header for setting expiry.try by setting the reporting option also.


SET OutputRoot.MQMD.Report =0
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Thu May 17, 2007 12:56 pm    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

kishoreraju wrote:
did you checked the event log . it will show you the correct error. like what was missing in the header for setting expiry.try by setting the reporting option also.


SET OutputRoot.MQMD.Report =0


In my opinion error message showed here explains source of problem.
Quote:

User defined attribute must specify an initial value expression.

User defined attributes must either be given an initial value on the DECLARE statement or be given a value at deploy time.

Set the value of the User Defined Attribute at deploy time.

_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » URGENT-Set value in Expiry field in MQMD
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.