go to post Clark Matthews · Apr 12, 2023 What about the export/import stream methode?? https://docs.intersystems.com/iris20222/csp/documatic/%25CSP.Documatic.c...
go to post Clark Matthews · Oct 4, 2017 Magnus, I am no Ensemble expert, however I understood that logging what it does is part of what Ensemble does. So I would expect it to log what it is transferring. You could write your own class outside of Ensemble using the %Net.FtpSession class. Open up two connections and copy the stream you read with .Retrieve() to the stream you write with .Store(). Would this work?HTH, Clark
go to post Clark Matthews · Mar 21, 2017 Rafael, The only times I have ever seen this happen is when there was an error returned from the OS while MSM was trying to access the file. I would recommend that you simply delete and recreate the file. If it happens again check all the log files including the OS logs and 'msmlog' for any errors or other indications of an I/O problem. Beyond that you should log a support call with us at 'support@intersystems.com' if it is a chronic problem, and I can help you get to the bottom of it.Thank you, Clark
go to post Clark Matthews · Dec 30, 2016 Peter, What kind of files are these? Text files, PDF files, something else entirely? The answer to this is going to matter because some formats require an application to print them.Where are the files. Are they on the server or are they on the client. Clark
go to post Clark Matthews · Dec 8, 2016 Thomas, You should get a hang if you try '$zf(-1) from Studio, or any other connection method (JOB command, Telnet, CSP, etc) where the process is not directly associated with your Windows session. The hang occurs because, in fact, a 'cmd' session is started, but no on your desktop, you can see it in Task Manager although it is difficult to identify there. You should be able to execute a command that does no interact with the Windows session user however, for example 'w $ZF(-1,"dir > C:\Temp\Dir.txt")' should return 0 and result in creating the listing in the specified file assuming you have privileges to do so. The fact you get a -1 back from terminal (a $io="|TRM|"* process) is a bit odd, I just tested and it works for me. Does your user have the Windows rights required to run 'cmd'? What happens if you right-click '[Windows Start] > [Run]' and enter the command 'cmd', does that work? You may need to contact Support to further investigate this.Clark
go to post Clark Matthews · Nov 17, 2016 Wendy, Is the file on a mapped device? If so does the session that is issuing the '.RemoveFile()' see the mapping. You can check this by having the session issue a command like 's X=$ZF(-1,"NET USE > C:\Temp\UseResult-"_$J_".txt")'. Note that "Cache Terminal ($I="|TRM|*") get the logged in users mapping while JOBbed processes, those coming in via telnet, or other TCP/IP based connections get the mappings of the Cache service. For example, from Cache Terminal ($I="|TRM|:|13248") I get: New connections will be remembered. Status Local Remote Network ------------------------------------------------------------------------------- Unavailable H: \\cambnfs1\nethome\clarkm Microsoft Windows Network OK L: \\192.168.10.32\Library Microsoft Windows Network OK S: \\192.168.10.32\Scratch Microsoft Windows Network OK W: \\supnfs1\supscratch1\clarkm Microsoft Windows Network OK X: \\refiles\scratch1\clarkm Microsoft Windows Network Unavailable Y: \\refiles\scratch2\clarkm Microsoft Windows Network Unavailable Z: \\refiles\scratch3\clarkm Microsoft Windows Network Unavailable LPT2: \\192.168.10.36\Canon MP530 Series Printer Microsoft Windows Network The command completed successfully. However from a Telnet session ($I="|TNT|CMATTHEWS6440.iscinternal.com:11992|12936") I see: New connections will be remembered. There are no entries in the list. This is because the telnet session does not see the mappings that the logged in user has. If you want the service to, you will need to add the mappings somewhere using a NET USE command. In Cache you can put it in the %ZSTART routine, or you can put it in your application code.
go to post Clark Matthews · Nov 16, 2016 You may also want to look at:$system.Process.MemoryAutoExpandStatus()$system.Process. StoreErrorReason()I have found the latter to be helpful when the OS is refusing to grant memory.
go to post Clark Matthews · Nov 4, 2016 If you read from 'cmd' after the failure do you get an error back?Example: USER>S cmd="mkdir F:\DIRECTORY" USER>O cmd:"QR":10 USER>u cmd r X USER>zw X="The system cannot find the drive specified." cmd="mkdir F:\DIRECTORY" USER>
go to post Clark Matthews · Oct 26, 2016 In relation to what? There isn't a grave (`) operator in COS, the operators are listed here: http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...Is this an SQL (set) question, or perhaps a regex (operator) question? I think you need to be more specific about what you are asking.