Hello,
I am using the Put command with the File adapter in a map rule to output a file with a variable name. However, I am getting two files created instead of the desired one file when I use the following rule:
PUT("File", "C:\Documents and Settings\Desktop\" + TEXT(BatchNumber Field:.:UnidataInput) + "(" + FROMDATETIME(CURRENTDATE(), "YYMMDD" + "" + ".NCP", PACKAGE(NcpdpBatch))
If I change the map rule to the following I only get one file:
PUT("File", "C:\Documents and Settings\Desktop\" + "(" + FROMDATETIME(CURRENTDATE(), "YYMMDD" + "" + ".NCP", PACKAGE(NcpdpBatch))
Does anyone know why, in this case, using a data element from the input as part of the name of the output causes two files to be created? I have created file names for output using data elements before to create unique file names for the output and I have not run into this.
Thanks for any help.
I am using the Put command with the File adapter in a map rule to output a file with a variable name. However, I am getting two files created instead of the desired one file when I use the following rule:
PUT("File", "C:\Documents and Settings\Desktop\" + TEXT(BatchNumber Field:.:UnidataInput) + "(" + FROMDATETIME(CURRENTDATE(), "YYMMDD" + "" + ".NCP", PACKAGE(NcpdpBatch))
If I change the map rule to the following I only get one file:
PUT("File", "C:\Documents and Settings\Desktop\" + "(" + FROMDATETIME(CURRENTDATE(), "YYMMDD" + "" + ".NCP", PACKAGE(NcpdpBatch))
Does anyone know why, in this case, using a data element from the input as part of the name of the output causes two files to be created? I have created file names for output using data elements before to create unique file names for the output and I have not run into this.
Thanks for any help.