Question

Dynamic file names for external batch file

  • 20 March 2023
  • 1 reply
  • 88 views

Userlevel 2
Badge +4

Hello,

Is it possible to set up a Batch external file job to handle dynamic file names?

 

 

I tried putting an asterisk (*) at the end of the file name within the External File Template but that produces an error saying the file cannot be found.
 

 


1 reply

Userlevel 4
Badge +8

Hi @chrisbrigg 

no, this is only possible with a customization/modification.

Without a customization/modification you can think about using the migration tool executing this External File assistant and updating this file name automatically before the needed method/procedure for this External File Assistant will be executed.

The migration tool can handle dynamic file names with a workaround. You need at least 2 migration jobs. Only as an idea and the migration jobs will not migrate data in this case :

  1. 1st MIGRATE_SOURCE_DATA job who is reading the content of a directory and which is putting the file_name into the second migration job (yes, a migration job can update another migration job)
  2. 2nd MIGRATE_SOURCE_DATA job which will execute the method of your external file assistant incl. the file_name of the first migration job

/Jens

Reply