Is there a way to capture the info which is not in a fixed location?

Previous topic - Next topic

jw

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





Nolan

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

#zOS #AIX #Windows #Multiplatforms
#DB2 #TSM #ODF #zODF #ODWEK
#CapacityPlanning #AFP #ReportDistribution
#Finance #ICN

jw

Thanks Nolan.   :)

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

-jw

Justin Derrick

Doesn't ACIF have support for RegEx searches for fields now?  Check that out.

-JD.
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

jw

Thanks Justin.

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