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
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.
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