Change Number of Threads based on Size of the file

Discussion created by shravani_vedantham_6826 on Jan 2, 2018
Latest reply on Jan 9, 2018 by Wolfgang_Brueckler_1288

I have a job which takes the input as a file and executes the job. The file can be of any size. I want to assign different threads for different file sizes.

Is there a way I could add a condition to check for the file size before the job starts and assign the number of threads based on the specifications. In AM, we did that as we have a file size option.

I have a vara which specifies the number of threads and by default the job takes that if it doesn't satisfy any file specifications.

eg: Size > 9000 bytes - assign number of threads = 12

size < 300 - assign number of threads = 1

Any input is appreciated.