Sidebar

Batched file on a weekly basis

0 votes
352 views
asked Nov 24, 2014 by rdzanski-1356 (210 points)
Currently sending files to a folder with the following naming convention:

VXU_{SYSTEM_DATE[yyyy-MM-dd]}.hl7

If current date, file is appended to, but what is the syntax for a weekly batch?  Want to keep appending to file for the current week, next week unique name for that week, etc.

 

Thank you.

1 Answer

0 votes
 
Best answer
The system Node tag has a "w" that will give you the week number. Here is what you put in the path.

\\somepath\{SYSTEM_DATE[yyyyww]}.hl7

so the {SYSTEM_DATE[yyyyww]} will resolve to the year and week number.
answered Nov 24, 2014 by brandon-w-8204 (33,270 points)
...