Skip to Content
author's profile photo Former Member
Former Member

File to File with no mapping (different filename)

I have a requirement to change the name of the filename in a file-to-file scenario. The prefix of the file will stay the same, but the target file needs to have a date format replace main part of the file. The date format is also specific YYYYMM. Below are the two examples of the source and target filenames. We are not doing a message mapping with this scenario.

Source: CA_MONTHLY_REPORT.txt Target: CA_200901_01.txt

Source: US_MONTHLY_REPORT.txt Target: US_200901_01.txt

The date needs to be calculated off a date function for current month and year.

Is this possible to do?

Thanks

Skip Ford

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2009 at 08:10 PM

    With mapping (UDF) it is easy. But I guess you're not allowed to use mapping, you would need to introduce adapter module.

    I think with the standard configuration, you can not archive it. You have to use either UDF or adapter module.

    Jayson

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2009 at 08:19 PM

    HI Skip,

    I think, you should be able to get the YYYYMM as a part of the file name using OS command in the file adapter.

    Thanks,

    Pooja Pandey

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2009 at 02:22 PM

    .

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.