go to post Robert Cemper · Aug 7, 2019 <ZSOAP> is just a summary not more meaning than "there was an error"for the details, I'd suggest to analyze variable %objlasterroreg. set detail=$system.Status.GetErrorText(%objlasterror)set fault.detail="<mymessage>"_detail_"</mymessage>"
go to post Robert Cemper · Aug 7, 2019 An upgrade from Caché to Ensemble is not foreseen. Install ENSEMBLE in parallel to Caché and include your Caché Databases to Ensemble as you need. Attention: Ensemble is always running in Unicode!
go to post Robert Cemper · Aug 7, 2019 You find it in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Intersystems\Cache\Servers\<YourServer>I found it by searching some Webserver Port with regedit.exe
go to post Robert Cemper · Aug 5, 2019 Suggested approach:Create a namespace %ALL which is visible to all other namespaces and map the common class/table into it.with global, package, routines whatever is related to it. See Mapping Data to All Namespaces link
go to post Robert Cemper · Jul 31, 2019 - - - " let's print only one number or word per line, " - - - That was my trigger. Thanks @Eduard Lebedyuk for the hint
go to post Robert Cemper · Jul 31, 2019 c'mon - it even works with text files: USER>s file="fizzbuzz.txt" USER>o file:"WNS":0 W $t 1 USER>u file f i=1:1:100 w:i#3=0 "Fizz" w:i#5=0 "Buzz" w:'$x i w ! USER>c file USER>$type fizzbuzz.txt 1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz
go to post Robert Cemper · Jul 31, 2019 it doesn't show numbers at end if you run it as single line command in a standard Caché terminal supporting $X,$Y.newline sets $x=0, $i($Y) USER>f i=1:1:100 w:i#3=0 "Fizz" w:i#5=0 "Buzz" w:'$x i w ! 1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz 16 17 Fizz 19 Buzz Fizz 22 23 Fizz Buzz 26 Fizz 28 29 FizzBuzz 31 32 Fizz 34 Buzz Fizz 37 38 Fizz Buzz 41 Fizz 43 44 FizzBuzz 46 47 Fizz 49 Buzz Fizz 52 53
go to post Robert Cemper · Jul 31, 2019 53 bytes raw f i=1:1:100 w:i#3=0 "Fizz" w:i#5=0 "Buzz" w:'$x i w !
go to post Robert Cemper · Jul 30, 2019 if you can't use the required version of $ZF(-100.....)you still may try CPIPE as described here Execute Server Commands from Caché / Ensemble / IRIS
go to post Robert Cemper · Jul 30, 2019 Your problem is that "pwd" is not a valid command in WINDOWS !!! use instead "echo ^%cd^%"ref: https://stackoverflow.com/questions/921741/windows-equivalent-to-unix-pwdthis works: USER>s a=$zf(-100,"/SHELL","echo %cd%") d:\database\www17\user
go to post Robert Cemper · Jul 21, 2019 I stated:name your config SMP<port> that is SMP57772 or just 57772then the config name reflects the SMP port
go to post Robert Cemper · Jul 20, 2019 on WIN the config name is burned into the registry Computer\HKEY_CURRENT_USER\Software\InterSystems\Cache\Configurations\......UNIX/Linux has some structure simulating Win_Registry. Support experts will know the details.
go to post Robert Cemper · Jul 20, 2019 Your terminal prompt can be configured to display the instance. see TerminalPrompt eg. config>namespace> [Startup] TerminalPrompt="3,2" and you name your config "SMP<portnumber>" which should be valid.eventually only "<portnumber> " might do it as well. On the page System Administration > Configuration > Additional Settings > Startup, in the TerminalPrompt row, select Edit.
go to post Robert Cemper · Jul 20, 2019 Hi Evegeny,I found nothing sophisticated but very straight.just from any namespace or routine / method. USER>w ^%SYS("SSPort") ;;SuperServer 1972 USER>w ^%SYS("WebServer","Port") ;; WebServer 57772 USER>
go to post Robert Cemper · Jul 19, 2019 ENSEMBLE may have some signal mechanic.BUT at Caché level you still have Special Variable $HALT as the last chance handler.all details https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=RCOS_vhaltMost important: If you have $HALT set and also have code defined for ^%ZSTOP when a HALT is issued, the $HALT is executed first. $HALT can prevent the termination of the process, if its halt trap routine does not contain a HALT command. !!!!
go to post Robert Cemper · Jul 19, 2019 if you test your example from terminal prompt it needs some important change:open file:("WNS"):3if ('$test) { write !,"Failed to open "_file quit }use file do ALL^%SS ;; must be the same lineclose filequit