cancel
Showing results for 
Search instead for 
Did you mean: 

Temporary file name / ftp

rainer_hbenthal
Active Contributor
0 Kudos

Hi,

9. Under Write Mode, specify whether the target file is to be written Directly to the specified directory.

○ If an additional step is to be added using a temporary file, choose Use Temporary File.

○ You can specify a naming scheme for the temporary file under Temporary File Name Scheme.

This scheme is used to determine the prefix and extension of the temporary file; to ensure a unique file name, a time stamp is also added to the name during processing.

Example

The scheme xitemp.tmp, for example, results in the file name xitemp<timestamp>.tmp.

Is there any way to avoid the adding of the timestamp? i only have a limited number of allowed characters in the filename (10 + 3)

Any idea?

Accepted Solutions (0)

Answers (6)

Answers (6)

rainer_hbenthal
Active Contributor
0 Kudos

No answer. Why i'm getting the hint to use create file when i want to create a temporary file which is renamed to avoid reading before the entire file is written?

no points given...

Former Member
0 Kudos

Hi,


in the receiver comm channel under File Construction Mode(Processing Tab Page
)

choose *Create* Mode  Selection
 The file is created. The document received last is saved in each case. 

Former Member
0 Kudos

Do you use a JavaMapping???

Regards

rainer_hbenthal
Active Contributor
0 Kudos

There is no mapping, the file is taken as it is and transferred to the target host. The file should be written with e tmp filename to prevent reading it until it is fully written, after that it should be renamed so the appliacation can pick it up.

former_member750652
Contributor
0 Kudos

HI Rainer,

I think this is possible by enabling Adapterspecific message attributes and disabling Timestamp option under those attributes in the receiver communication channel.

Thanks,

Ram.

Shabarish_Nair
Active Contributor
0 Kudos

>

> HI Rainer,

>

> I think this is possible by enabling Adapterspecific message attributes and disabling Timestamp option under those attributes in the receiver communication channel.

>

> Thanks,

> Ram.

this is not possible

Former Member
0 Kudos

JUst check the option ther are other option where u can chose from..instead adding timesatmp u can have differnet file name.....

Processing Tab Page

Processing Parameters

● Various options exist for creating the files:

File Construction Mode

Mode

Selection

Create

The file is created. The document received last is saved in each case.

Select Overwrite Existing File if you want to overwrite the existing file. If you do not set the indicator, processing is stopped until the created file is processed.

You can only set the indicator if you have selected Use Temporary File under Put File.

Append

The file is written when the inbound document is attached.

Add Time Stamp

A new file is created for each document. Each file is extended with a time stamp with the format yyyyMMdd-HHmmss-SSS. The time stamp is added as the last part of the name before the extension.

This mode guarantees that no file is overwritten. In this way, files that originate from the same adapter configuration can be sorted.

Add Message ID

A new file is created for each document. The file name is extended by the message ID generated by the Integration Server/PCK. The ID has the format: xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.

The message ID is added as the last part of the name before the extension. This mode guarantees that no file is overwritten.

Add Counter

A new file is created for each document. The file name is extended with a counter, which is inserted before the file name extension (for example, default002.file). This selection is only available for the File System (NFS) transport protocol.

Make specifications for Counter Definition:

Prefix

Specify one or more characters that you want to add before the counter in the file name.

Format

Specify the first counter to be used. It must be a valid integer number. Leading zeros are permitted.

Step

Specify the counter increment.

Mode

Specify when the counter is to be added.

After First File

The counter is added when the file name is used unaltered for the first time.

Immediately

The counter is added with the first document.

Shabarish_Nair
Active Contributor
0 Kudos

> Hi,

>

>

9. Under Write Mode, specify whether the target file is to be written Directly to the specified directory.

○ If an additional step is to be added using a temporary file, choose Use Temporary File.

○ You can specify a naming scheme for the temporary file under Temporary File Name Scheme.

This scheme is used to determine the prefix and extension of the temporary file; to ensure a unique file name, a time stamp is also added to the name during processing.

Example

The scheme xitemp.tmp, for example, results in the file name xitemp<timestamp>.tmp.

>

> Is there any way to avoid the adding of the timestamp? i only have a limited number of allowed characters in the filename (10 + 3)

>

> Any idea?

do you want to use the temporary file option ? then the timestamp option cannot be modified.

else if you want to write the file directly then you have other options so as to not use the timestamp.