Customer Portal

Date in file URL or file

Comments 1

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello Bernie,
    your aim can be achieved with partition feature, which is supported with most of the Writers (see Partitioning Output into Different Output Files). If your data contains current time stamp (if not, you can add it, when reading input data with reader_timestamp auto filling function), let say in field current_date, your Writer should have following settings:
    • fileURL="${DATAOUT_DIR}/output_#.log"

    • partitionFileTag="keyNameFileTag"

    • partitionKey="current_date"

    When using StructerWriter, you specify if you want the current_date field in output file in mask attribute; when using UniversalDataWriter, you can specify the filed in excludeFields attribute, if you don't want to store the date in output file.

Please sign in to leave a comment.