Skip to main content

[archive] How to search? pls help

  • December 1, 2009
  • 6 replies
  • 0 views

[Migrated content. Thread originally posted on 30 November 2009]

Hi,

I need to write a program to search for a text 'one word or more' in an indexed file records.
Means to read the file sequentially and search if the word or more exit in the record, keeping in mind the upper and lower case which the user types.

Can someone help with sample program?
Thanks

6 replies

[Migrated content. Thread originally posted on 30 November 2009]

Hi,

I need to write a program to search for a text 'one word or more' in an indexed file records.
Means to read the file sequentially and search if the word or more exit in the record, keeping in mind the upper and lower case which the user types.

Can someone help with sample program?
Thanks
What about when you read your record doing something like

INSPECT MyText TALLYING SomeCounter FOR ALL SomeText

We do that in certain parts of our product - works well for what we need

[Migrated content. Thread originally posted on 30 November 2009]

Hi,

I need to write a program to search for a text 'one word or more' in an indexed file records.
Means to read the file sequentially and search if the word or more exit in the record, keeping in mind the upper and lower case which the user types.

Can someone help with sample program?
Thanks
Thanks for your help.

When I use the statement like this:

insepct my-record TALLYING my-counter FOR ALL 'abcd' it works.

but if the 'abcd' are in a data field like this:

insepct my-record TALLYING my-counter FOR ALL my-field it doesn't work maybe due to the spaces in the field.

Any idea how I can do it.

Thanks

[Migrated content. Thread originally posted on 30 November 2009]

Hi,

I need to write a program to search for a text 'one word or more' in an indexed file records.
Means to read the file sequentially and search if the word or more exit in the record, keeping in mind the upper and lower case which the user types.

Can someone help with sample program?
Thanks
Thanks for your help.

When I use the statement like this:

insepct my-record TALLYING my-counter FOR ALL 'abcd' it works.

but if the 'abcd' are in a data field like this:

insepct my-record TALLYING my-counter FOR ALL my-field it doesn't work maybe due to the spaces in the field.

Any idea how I can do it.

Thanks

[Migrated content. Thread originally posted on 30 November 2009]

Hi,

I need to write a program to search for a text 'one word or more' in an indexed file records.
Means to read the file sequentially and search if the word or more exit in the record, keeping in mind the upper and lower case which the user types.

Can someone help with sample program?
Thanks
Solution is here....
http://www.acucorp.com/support/supported/customer_forum/showthread.php?t=1688

[Migrated content. Thread originally posted on 30 November 2009]

Hi,

I need to write a program to search for a text 'one word or more' in an indexed file records.
Means to read the file sequentially and search if the word or more exit in the record, keeping in mind the upper and lower case which the user types.

Can someone help with sample program?
Thanks
Solution is here....
http://www.acucorp.com/support/supported/customer_forum/showthread.php?t=1688

[Migrated content. Thread originally posted on 30 November 2009]

Hi,

I need to write a program to search for a text 'one word or more' in an indexed file records.
Means to read the file sequentially and search if the word or more exit in the record, keeping in mind the upper and lower case which the user types.

Can someone help with sample program?
Thanks
Solution is here....
http://www.acucorp.com/support/supported/customer_forum/showthread.php?t=1688