OnDemand Users Group

Support Forums => CMOD for Multiplatforms => Topic started by: jw on October 18, 2016, 03:40:19 PM

Title: Is there a way to capture the info which is not in a fixed location?
Post by: jw on October 18, 2016, 03:40:19 PM
Does anyone know how to capture the indexing value if it does not in a fixed location?


For example (case 1):

TRG*abcd*I want to capture this*20161101*


Case 2:

TRG*abcdefghij*I want to capture this as well*20161101*


Is there any way to capture the orange highlighted text for one of my indexing field? 

Thanks in advance.

-jw




Title: Re: Is there a way to capture the info which is not in a fixed location?
Post by: Nolan on October 18, 2016, 04:06:17 PM
Floating location can work in some cases but you are also asking for variable size.  Don't think that is possible with out using an Exit.   Given the sample data, I would use the index exit passing the whole line and then parse out the what you really want to capture.
Title: Re: Is there a way to capture the info which is not in a fixed location?
Post by: jw on October 19, 2016, 05:54:57 PM
Thanks Nolan.   :)

I was hoping I don't need to get into this avenue.  Thanks again.

-jw
Title: Re: Is there a way to capture the info which is not in a fixed location?
Post by: Justin Derrick on October 20, 2016, 09:21:14 PM
Doesn't ACIF have support for RegEx searches for fields now?  Check that out.

-JD.
Title: Re: Is there a way to capture the info which is not in a fixed location?
Post by: jw on October 21, 2016, 11:11:27 AM
Thanks Justin.

It looks like the RegEx is not available in CMOD 8.5, which is what we are using currently.   >:(

Title: Re: Is there a way to capture the info which is not in a fixed location?
Post by: jw on February 17, 2017, 04:30:25 PM
Has anyone done it in CMOD 9.5?

-jw