Function for Input file size

Altair Forum User
Altair Forum User
Altair Employee
edited February 2018 in Community Q&A

I'd like to have the file size available in my summary for each input source.  Hoping someone can tell me I've missed how to do it or have a cheaty way to do it?

 

 

Version 14

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2018

    Tiff,

    Unfortunately Monarch does not provide a function that will print a report file size.

    I suggest you use the DOS dir command and redirect file names and sizes to a file (e.g. Dir C:\temp\* > file.txt).  Then use Monarch desktop and bring file.txt as an input, create two columns, filename, and file size.  Export the table to another file.  Then open your original report, use the file() function to capture file names.  Bring the exported file that contains filename and file size as an external lookup, link file names, and merge file size.

    Regards

    Mo

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2018

    Tiff,

    Unfortunately Monarch does not provide a function that will print a report file size.

    I suggest you use the DOS dir command and redirect file names and sizes to a file (e.g. Dir C:\temp\* > file.txt).  Then use Monarch desktop and bring file.txt as an input, create two columns, filename, and file size.  Export the table to another file.  Then open your original report, use the file() function to capture file names.  Bring the exported file that contains filename and file size as an external lookup, link file names, and merge file size.

    Regards

    Mo

    Thanks, Mo!  I'll consider the external lookup route.