Skip to Content
0
Former Member
Jun 06, 2014 at 07:02 PM

How to change timestamp ?

48 Views

We have scenario proxy to file(SFTP) PI 7.1

For each trigger from proxy...data is split into 3 files (multimapping used) with filenames as :

abc<yyyyMMdd_HHmmss>.txt

def<yyyyMMdd_HHmmss>.txt

xyz<yyyyMMdd_HHmmss>.txt

The timestamp should be same for all three files for each trigger.

Now the issue is that even if PI takes one more second for any of the split to process, the timestamp will vary by 1 second.

e.g. for each trigger filenames should be:

abc20140606_125417.txt

def20140606_125417.txt

xyz20140606_125417.txt

if the delay in processing of any of the split is by one second..filenames will be:

abc20140606_125417.txt

def20140606_125418.txt

xyz20140606_125419.txt

As proxy is triggered a number of times a day, I cannot hard code the time part in timestamp.

Can anybody help me in meeting this requirement ?