Topic
  • 3 replies
  • Latest Post - ‏2005-08-23T03:02:39Z by SystemAdmin
SystemAdmin
SystemAdmin
332 Posts

Pinned topic Flat file in dynamic folders.

‏2005-08-16T11:49:23Z |
Hi all,

I need to create flat files in dynamic folders, for intance:
D:\Datastage\Projects\XYZ\20050101\test.txt
Where XYZ is the project and 20050101 is the date where it should change on every run every day.

Is there a way to create flat files in dynamic folders?.
Regards,
Updated on 2005-08-23T03:02:39Z at 2005-08-23T03:02:39Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    332 Posts

    Re: Flat file in dynamic folders.

    ‏2005-08-16T13:25:46Z  
    Do you need to create the directory too? You might want to post this in the IBM WebSphere Datastage forum.
  • SystemAdmin
    SystemAdmin
    332 Posts

    Re: Flat file in dynamic folders.

    ‏2005-08-17T04:24:03Z  
    I have already created the folder in a previous job using a DOS command. My problem is how do i have to integrate this new folder in the the path.
  • SystemAdmin
    SystemAdmin
    332 Posts

    Re: Flat file in dynamic folders.

    ‏2005-08-23T03:02:39Z  
    This is best achieved using a job parameter. The value of that parameter can be set in a job sequence as the output of an ExecuteCommand activity executing something like b:e38a6c4944date +"%YYYY%mm%dd"[/b:e38a6c4944]