Hi, You can use the syntax
MYVAR=CUSTOMER.NO <http://customer.no/> MY.LIST= LIST.OF.CUSTOMERS FINDSTR MYVAR IN MY.LIST SETTING Y.FMM,Y.VMM,Y.SMM THEN Thanks, Baks On Thu, Jan 28, 2010 at 12:04 AM, Igor Micev <[email protected]> wrote: > Hi > You have some functions like LOCATE, INDEX, FIND ,... to find a substring > in a string. > Read a little bit in the manuals :) > > On Wed, Jan 27, 2010 at 11:02 AM, master <[email protected]> wrote: > >> How do you find a variable string in a list of items? >> >> From what I know about FINDSTR, I have the explicitly give the string >> to be searched >> >> for instance, FINDSTR "ABC" IN MY.LIST SETTING MYRESULT ELSE ... >> >> Now, assuming ABC is not defined and is a variable: >> >> myVar=CUSTOMER.NO <http://customer.no/> >> >> MY.LIST= LIST.OF.CUSTOMERS >> >> How do I use the FINDSTR to search for the specific customer stored in >> myVar at that instance? >> >> PS: The example is purely for illustration and may not make business >> sense >> >> -- >> Please read the posting guidelines at: >> http://groups.google.com/group/jBASE/web/Posting%20Guidelines >> >> IMPORTANT: Type T24: at the start of the subject line for questions >> specific to Globus/T24 >> >> To post, send email to [email protected] >> To unsubscribe, send email to [email protected] >> For more options, visit this group at >> http://groups.google.com/group/jBASE?hl=en >> > > > > -- > Igor Micev > > -- > Please read the posting guidelines at: > http://groups.google.com/group/jBASE/web/Posting%20Guidelines > > IMPORTANT: Type T24: at the start of the subject line for questions > specific to Globus/T24 > > To post, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit this group at > http://groups.google.com/group/jBASE?hl=en > -- Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24 To post, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
