go to post Rod Dorman · Jan 14, 2022 In that case you'll want to use %Net.SSH.Session to connect to the site and once signed in use the OpenSFTP method to open a SFTP session to be able to make %Net.SSH.SFTP calls, in particular the Put or PutStream method
go to post Rod Dorman · Jul 18, 2019 Use $ZDATEH() to convert to internal $HOROLOG format, and $ZDATE() to convert to your desired format WRITE $ZDATE($ZDATEH("14JAN1991",8),8)
go to post Rod Dorman · Oct 16, 2018 type KILL DO ^%IS hit Enter twice WRITE and look at what IOF and IOST are set to
go to post Rod Dorman · Sep 19, 2018 SET Command="wmic useraccount get name,sid" SET $ZT = "CommandErr" OPEN Command:"QR" FOR { USE command READ Text USE $P SET Array($I(Array))=Text } CommandErr ; SET $ZT="" SET ZE=$ZE USE $P CLOSE command IF $P(ZE,">")'="<ENDOFFILE" { ; some error other than end of file } ELSE { ; parse contents of Array() }
go to post Rod Dorman · Jul 16, 2018 If the command you're using doesn't support redirection to a file use a command pipe e.g. SET $ZT="CommandErr" OPEN Command:"QR" FOR { USE Command READ Text USE $P ; do something with the text } CommandErr ; SET ZE=$ZE SET $ZT="" USE $P CLOSE Command IF $P(ZE,">")="<ENDOFFILE" { ; successful completion } ELSE { ; something happened }
go to post Rod Dorman · Apr 12, 2018 You could try using $QUERY to iterate the global and use $QLENGTH to determine how deep you are and $QSUBSCRIPT to determine what the subscripts are.