Author Topic: Is there a way to capture the info which is not in a fixed location?  (Read 2520 times)

jw

  • Guest
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

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: Is there a way to capture the info which is not in a fixed location?
« Reply #1 on: October 18, 2016, 09:06:17 AM »
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

  • Guest
Re: Is there a way to capture the info which is not in a fixed location?
« Reply #2 on: October 19, 2016, 10:54:57 AM »
Thanks Nolan.   :)

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

-jw

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Is there a way to capture the info which is not in a fixed location?
« Reply #3 on: October 20, 2016, 02:21:14 PM »
Doesn't ACIF have support for RegEx searches for fields now?  Check that out.

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

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

jw

  • Guest
Re: Is there a way to capture the info which is not in a fixed location?
« Reply #4 on: October 21, 2016, 04:11:27 AM »
Thanks Justin.

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


jw

  • Guest
Re: Is there a way to capture the info which is not in a fixed location?
« Reply #5 on: February 17, 2017, 09:30:25 AM »
Has anyone done it in CMOD 9.5?

-jw