Hi,
I have 30 .txt files delimited by "|". One column in the header of each text file is "SOL_ID". This column is not fixed and changes its position. I want to search for a particular input value in this column "SOL_ID" and if found, it will extract the entire row to an excel sheet. Separate worksheet for separate text files. Can it be done. Please help. I am pasting a sample of the text file;
S_NO|BINARY_ID|KPI_ID|BUSINESS_STREAM|REPORT_DATE|EXECUTION_DATE|PROC_DATE|SOL_ID|PPO_NUM|
CO_307| |CO_307|CO FUNCTIONS|APR-2020|04-MAY-20|30-APR-20|296|684471606048|
CO_307| |CO_307|CO FUNCTIONS|APR-2020|04-MAY-20|30-APR-20|3330|684471606019|
CO_307| |CO_307|CO FUNCTIONS|APR-2020|04-MAY-20|30-APR-20|3330|684471605737|
CO_307| |CO_307|CO FUNCTIONS|APR-2020|04-MAY-20|30-APR-20|707|684471606134|
CO_307| |CO_307|CO FUNCTIONS|APR-2020|04-MAY-20|30-APR-20|157|713831606072|
CO_307| |CO_307|CO FUNCTIONS|APR-2020|04-MAY-20|30-APR-20|007|CMISC0130222016|
I have 30 .txt files delimited by "|". One column in the header of each text file is "SOL_ID". This column is not fixed and changes its position. I want to search for a particular input value in this column "SOL_ID" and if found, it will extract the entire row to an excel sheet. Separate worksheet for separate text files. Can it be done. Please help. I am pasting a sample of the text file;
S_NO|BINARY_ID|KPI_ID|BUSINESS_STREAM|REPORT_DATE|EXECUTION_DATE|PROC_DATE|SOL_ID|PPO_NUM|
CO_307| |CO_307|CO FUNCTIONS|APR-2020|04-MAY-20|30-APR-20|296|684471606048|
CO_307| |CO_307|CO FUNCTIONS|APR-2020|04-MAY-20|30-APR-20|3330|684471606019|
CO_307| |CO_307|CO FUNCTIONS|APR-2020|04-MAY-20|30-APR-20|3330|684471605737|
CO_307| |CO_307|CO FUNCTIONS|APR-2020|04-MAY-20|30-APR-20|707|684471606134|
CO_307| |CO_307|CO FUNCTIONS|APR-2020|04-MAY-20|30-APR-20|157|713831606072|
CO_307| |CO_307|CO FUNCTIONS|APR-2020|04-MAY-20|30-APR-20|007|CMISC0130222016|