The first two systems I worked with using InterSystems technology were a PDP-11 running M11+ and a VAX 11/750 running M/VX. Too many years ago to count! 😊
Since then I've used most, if not all, InterSystems products up to IRIS and HealShare today.
I'm italian living in Switzerland and I work as Senior Consultant at GAIVOTA consultin SA, we provide professional services for InterSystems and other technologies.
Curiosity: apart from DC, I don't have ANY social account! 😁
ISO 8601 date format is not an accepted format for the SQL DATEPART function.
You can check the supported formats in the DATAPART SQL Documentation.
If I remove the trailing Z (for Zulu / UTC time) and leave the T, DatePart works fine
I'm afraid it does not woks fine:
select 'YEAR: '||DATEPART(YEAR,'2024-06-23T06:03:00')
result:
YEAR: 1900
Try:
select 'YEAR: '||DATEPART(YEAR,$TRANSLATE('2024-06-23T06:03:00Z','TZ',' '))
In my opinion, if you need to encode a file/stream "as is", without any conversion, so that the counterpart receiver get EXACTLY what your source file/stream is/was, then use %Stream.FileBinary.
If you need some character conversion (say, Unicode/UTF8 or others), then use %Stream.FileCharacter (with appropriate parameters...) that can handle the conversion.
![InterSystems IRIS Core Solutions Developer Specialist](https://images.credly.com/images/44ad9e06-ae9e-4b13-9eb2-545da56031cc/image.png)
![InterSystems IRIS System Administration Specialist](https://images.credly.com/images/bc2089ee-43cb-48b8-b368-d2b37e504c3c/image.png)
![InterSystems HL7® Interface Specialist](https://images.credly.com/images/d235c8cf-2d11-49b8-86f5-a6a3e3481bcc/image.png)
![InterSystems Developer Community Moderator](https://images.credly.com/images/288a3661-72e9-4275-a943-063ae9e7910f/image.png)
![Popular writer](https://community.intersystems.com/sites/default/files/badges/poular_writer.png)
![Developer Community Moderator](https://community.intersystems.com/sites/default/files/badges/developer_community_moderator.png)
![Global Master of the Month](https://community.intersystems.com/sites/default/files/badges/gm_of_the_month_copy.png)
![DC Author](https://community.intersystems.com/sites/default/files/badges/dc_author_0.png)
![DC Commenter](https://community.intersystems.com/sites/default/files/badges/dc_commenter_1.png)
![DC Problem Solver](https://community.intersystems.com/sites/default/files/badges/dc_problem_solver_1.png)
![InterSystems Researcher](https://community.intersystems.com/sites/default/files/badges/researcher.png)
Have a look at the IO-Redirect application in Open Exchange.