Filename - sequential file output

30 views
Skip to first unread message

FJaffer

unread,
Aug 25, 2017, 1:57:51 PM8/25/17
to InterSystems: Ensemble in Healthcare
Hi,

Can anyone help me with the file specifications for output files.  I am using the outbound adapter and need the files to go out sequentially or adding a counter at the end?  For example,

test1
test2
test2

Thanks so much!
Femina

Graham, Ben

unread,
Aug 25, 2017, 2:23:46 PM8/25/17
to Ensemble-in...@googlegroups.com

Femina,

 

For HL7, before sending the message to the business operation, in the data transformation, you can set the ‘target.Source’ property to a value.

In the business operation file specification, %f uses this value.

 

Here is an example…

--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.






This electronic transmission and any documents accompanying this electronic transmission may contain information that is confidential and/or legally privileged. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on or regarding the contents of this electronically transmitted information is strictly prohibited. If you have received this e-mail in error, please notify the sender and delete this message immediately.

FJaffer

unread,
Aug 29, 2017, 1:24:51 PM8/29/17
to InterSystems: Ensemble in Healthcare
Thanks so much!

The problem I was having was not the filename it self, but sequencing each file as it goes out. 

Thanks again,
Femina


On Friday, August 25, 2017 at 12:23:46 PM UTC-6, Ben wrote:

Femina,

 

For HL7, before sending the message to the business operation, in the data transformation, you can set the ‘target.Source’ property to a value.

In the business operation file specification, %f uses this value.

 

Here is an example…

 

From: ensemble-in...@googlegroups.com [mailto:ensemble-in-healt...@googlegroups.com] On Behalf Of FJaffer
Sent: Friday, August 25, 2017 10:58 AM
To: InterSystems: Ensemble in Healthcare
Subject: [InterSystems-EnsHlth] Filename - sequential file output

 

Hi,


Can anyone help me with the file specifications for output files.  I am using the outbound adapter and need the files to go out sequentially or adding a counter at the end?  For example,

 

test1

test2

test2

 

Thanks so much!

Femina

--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.

To post to this group, send email to Ensemble-i...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healthcare-unsub...@googlegroups.com


For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.

To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healthcare+unsub...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

Lawrence Harris

unread,
Aug 29, 2017, 2:19:55 PM8/29/17
to InterSystems: Ensemble in Healthcare
You might want to subclass the file adapter and add the ability to append a sequence number.  You can store the number in the LookupTable (or anywere else you like).

The code would just adjust the file open to add a sequence number before the open.

Lawrence

Andy Picou

unread,
Aug 29, 2017, 2:47:33 PM8/29/17
to Ensemble-in...@googlegroups.com
Femina

On your File Outbound Operation look into making the File Name test%!#+(a1)

See the method Ens.Util.File.CreateTimestamp() for documentation of timestamping options.

For example, the string %F_%Q_%!#+(.a1) means the input filename is returned with a timestamp appended, and if a file like that already exists then .1 is
further appended, and if that also exists already then .2 is appended, and so on, up to .9, then to .a1, then up to .z9, and beyond that to .az1 and so on.



--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com

For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healt...@googlegroups.com.

FJaffer

unread,
Aug 31, 2017, 10:32:50 AM8/31/17
to InterSystems: Ensemble in Healthcare
Thank you so much +(1) worked beautifully!  Thanks so much!


On Tuesday, August 29, 2017 at 12:47:33 PM UTC-6, Andy wrote:
Femina

On your File Outbound Operation look into making the File Name test%!#+(a1)

See the method Ens.Util.File.CreateTimestamp() for documentation of timestamping options.

For example, the string %F_%Q_%!#+(.a1) means the input filename is returned with a timestamp appended, and if a file like that already exists then .1 is
further appended, and if that also exists already then .2 is appended, and so on, up to .9, then to .a1, then up to .z9, and beyond that to .az1 and so on.



On Aug 25, 2017, at 12:57 PM, FJaffer <femina...@gmail.com> wrote:

Hi,

Can anyone help me with the file specifications for output files.  I am using the outbound adapter and need the files to go out sequentially or adding a counter at the end?  For example,

test1
test2
test2

Thanks so much!
Femina

--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-i...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healthcare-unsub...@googlegroups.com

For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healthcare+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages