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 » How to generate random string in esql

Post new topic  Reply to topic
 How to generate random string in esql « View previous topic :: View next topic » 
Author Message
subbu
PostPosted: Thu Nov 26, 2009 10:18 pm    Post subject: How to generate random string in esql Reply with quote

Newbie

Joined: 26 Nov 2009
Posts: 8

Hi friends,

Can anybody help me to generate a ranadom string of length 12 characters in esql. Probably uuid is the option. But 12 characters length is mandatory. Can anybody help me regarding this?
Back to top
View user's profile Send private message
AkankshA
PostPosted: Thu Nov 26, 2009 11:37 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

afaik you can not generate random strings in eSQL as in java or C

May be you can use current time stamp trimmed to 12
DDMMYYHHMMSS
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
AkankshA
PostPosted: Thu Nov 26, 2009 11:38 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Moved to WMB forum from wishlist forum


_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Fri Nov 27, 2009 4:15 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You can use UUIDASBLOB or UUIDASCHAR and then decide which 12 character segment counts as "the most random" for your purposes.
Back to top
View user's profile Send private message
sirsi
PostPosted: Sat Nov 28, 2009 6:35 pm    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

beaware while using the timestamp... within a node it will give you the same value no matter how many times you call it...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to generate random string in esql
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.