🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Function for Input file size

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

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

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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.