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 » File validation against File_NAME pattern

Post new topic  This topic is locked: you cannot edit posts or make replies.
 File validation against File_NAME pattern « View previous topic :: View next topic » 
Author Message
prasad.gh789
PostPosted: Mon Sep 08, 2014 9:33 pm    Post subject: File validation against File_NAME pattern Reply with quote

Novice

Joined: 06 Aug 2014
Posts: 20

INPUT FILE NAME:- Pic100007_P012_L03_F0_XEX_D2000_03_10_T23_10_14_N00000024.jpg

Here we validate the position of '_' like this. please find below code

DECLARE RSGfile_name CHARACTER InputLocalEnvironment.File.Name ;

IF POSITION('_' IN RSGfile_name)=10 AND POSITION('_' IN RSGfile_name REPEAT 2)=15 AND POSITION('_' IN RSGfile_name REPEAT 3)=19 AND POSITION('_' IN RSGfile_name REPEAT 4)=22 AND
POSITION('_' IN RSGfile_name REPEAT 5)=26 AND POSITION('_' IN RSGfile_name REPEAT 6)=32 AND POSITION('_' IN RSGfile_name REPEAT 7)=35 AND POSITION('_' IN RSGfile_name REPEAT =38
AND POSITION('_' IN RSGfile_name REPEAT 9)=42 AND POSITION('_' IN RSGfile_name REPEAT 10)=45 AND POSITION('_' IN RSGfile_name REPEAT 11)=48THEN

but it looks very lengthy let me know any simple way to validate this using like concatenation or any other techniques

pls provide me ESQL for this logic
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Sep 09, 2014 4:31 am    Post subject: Reply with quote

Grand High Poobah

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

You're not going to get a different answer than the last time you asked this question here.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  This topic is locked: you cannot edit posts or make replies. Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » File validation against File_NAME pattern
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.