Hi Pranoy
What exactly are you trying to do? Parse, replace, substring the text? There are lots out there (all on F9862 and ObjectBrowser to test to check) to do various things in isolation or alone.
Example: If the text is separated at all, you can use Parse String B98220D to split it up. In you case it looks like ' '
Do Section =-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// Split out OBNM VERS etc
// Get OBJ VERS and extension from F986110.FUNDFU2
// FNDFUF2 is stored as a string made up of "OBJ_VERS_JOBNBR_PDF"
// =-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
//
BC Foundation - Future Use 2 (F986110.0) [FNDFUF2] = rtrim([BC Foundation - Future Use 2 (F986110.0) [FNDFUF2]], <Blank>)
ParseString(
B98220D.ParseString)
BC Foundation - Future Use 2 (F986110.0) [FNDFUF2] -> szInputObjectID [OMWOBJID]
VA rpt_NameObjectOBNM [OBNM] <- szOutputObjectSegment [OMWOBJID]
"0" -> mnSegmentNumber [MATH01]
"_" -> cDelimiter [EV01]
ParseString(
B98220D.ParseString)
BC Foundation - Future Use 2 (F986110.0) [FNDFUF2] -> szInputObjectID [OMWOBJID]
VA rpt_VersionVERS [VERS] <- szOutputObjectSegment [OMWOBJID]
"1.00" -> mnSegmentNumber [MATH01]
"_" -> cDelimiter [EV01]
ParseString(
B98220D.ParseString)
BC Foundation - Future Use 2 (F986110.0) [FNDFUF2] -> szInputObjectID [OMWOBJID]
VA rpt_DocumentExtensionDCEX [DCEX] <- szOutputObjectSegment [OMWOBJID]
"3.00" -> mnSegmentNumber [MATH01]
"_" -> cDelimiter [EV01]
If you just want to know it's in the text at all, B952334 is perfect. Same if you just want to replace.
If you need to know the starting position of the text you are looking for, first check it's there using one of the above, then chop one off the start of the text and loop substringing out the length you're looking for
When you hit a match, there's your position
Looking for Egg in fishEggfish would be
Yes I found Egg
Now check fis = Egg (starting pos 0)
No so try ish = Egg (starting pos 1)
No so try shE = Egg (starting pos 2)
No so try hEg = Egg (starting pos 3)
No so try Egg = Egg Boom! There's your answer (starting pos 4)