Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 09-19-2018 12:05 PM
Hi,
I want to split that file name('_') and store split values in variable for further operation.
The file name is combination of various parameter.
file Name = BBAS_2018091873_COEP_20180918141337_Cleaned_txt_scorable.csv
Stores the values in variable like,
like a=BBAS ,b=2018091873 , c=COEP, d=20180918141337 , e=Cleaned, f=txt , g=scorable.csv
Thanks in advance!!!
Created 09-19-2018 02:39 PM
Use getDelimitedField function and use UpdateAttribute processor and add new properties like.
a
${fileName::getDelimitedField(1,'_')}b
${fileName::getDelimitedField(2,'_')} By using getDelimitedField function we are going to add all the attributes you needed.
-
If the Answer helped to resolve your issue, Click on Accept button below to accept the answer, That would be great help to Community users to find solution quickly for these kind of issues.
Created 09-19-2018 02:39 PM
Use getDelimitedField function and use UpdateAttribute processor and add new properties like.
a
${fileName::getDelimitedField(1,'_')}b
${fileName::getDelimitedField(2,'_')} By using getDelimitedField function we are going to add all the attributes you needed.
-
If the Answer helped to resolve your issue, Click on Accept button below to accept the answer, That would be great help to Community users to find solution quickly for these kind of issues.
Created 02-01-2019 09:25 AM
thanks @shu
its working like charm
@Shu