"Extract Filename from Process Documents to use in Join"

mob
mob New Altair Community Member
edited November 5 in Community Q&A
I have a folder of documents where the filename of each is needed to "join" the text contents with another dataset. Is it possible to extract the filename, remove the extension and add it to the results in some way so I can associate the 2nd dataset with the contents of the file

At the moment I'm using the process documents from folder operator but I'm not sure how to get from there to where I want to go

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    Why not use loop files and Generate Attributes with %{filename}?

    This should work.

    ~Martin
  • mob
    mob New Altair Community Member
    If the filename was also contained within the text inside the file would it be possible to use "Process Documents" operator
  • haddock
    haddock New Altair Community Member
    Absolutely