go to post Robert Cemper · Sep 5, 2023 SMP > System Operation > Databases shows the size o your DB 8192 is the default you have to match te blocksize of your backup source /usr/lib/iris/mgr/ is IRISSYS or the HS equivalent a direct restore may destroy your running installation. restore it in a parallel DB and import only uncritical parts. in SMP > System Adnin > Config > Sys Config > Local DB you can set the Blocksize of the DB before creation: Blocksize might be hardwired in Community Distribution
go to post Robert Cemper · Sep 5, 2023 cross check in ObjectScript set d="/dev/nul" open d use d read xx close d zwrite xx xx="" QAD
go to post Robert Cemper · Sep 5, 2023 Investigating WebTerminal.core shows a top-quality redirect constructdesigned specifically for ObjectScript.I doubt that Embedded Py is able to make use of it.
go to post Robert Cemper · Sep 5, 2023 I think I found the deeper cause of the problem.In WebTeminal both $P and $I point to a /nul deviceStandard input from a NUL device is a NUL_string in any programming language I knowAs you can see this is happening here; I assume this is a design issue of WebTerminal and a mismatch with Embedded Py
go to post Robert Cemper · Aug 29, 2023 there is no public code available to examine.WRC has access to internals
go to post Robert Cemper · Aug 29, 2023 I like it!I wonder if this would work also for Horse Races or Roulette or BlackJack or Baccarat.
go to post Robert Cemper · Aug 29, 2023 The variable can't be the problemBUT the typical default structure is /iris/sys/<instance name>/mgr/<namespace>
go to post Robert Cemper · Aug 28, 2023 what is the method and the namespace you use to create the db ??
go to post Robert Cemper · Aug 28, 2023 The "L" in your Open makes me nervous.From the description, it seems to hang and wait for unlock not In IRIS but at OS-FileSystem Level.The description of "L" seems to give some chance for such a conflict. L Locked Exclusive: Use this mode with the “W” (Write) mode to specify exclusive write access to a file. “WL” or “WRL” specifies that the current process has exclusive write access to the file. A file opened with “RL” may still have shared read access. The effects of the “L” mode on concurrent opens are different in Windows and UNIX®. Refer to the “OPEN Mode Locking” section, below, for further details. On UNIX® systems if one process specifies “WL” (or “WRL”) access to a file, other processes requesting read access to that file must specify “RL” so that UNIX® can coordinate file locking. suggested testing: Check the situation without "L" If there is a difference: find out who else may lock at OS level
go to post Robert Cemper · Aug 26, 2023 Hi @Lorenzo Scalese I guess you are looking for class(%Utility).FormatString() USER>set lb=$lb(1,"Lorenzo",2023,"RCC"_$c(13,10)) USER>write lb LorenzoçRCC USER>zzdump lb 0000: 03 04 01 09 01 4C 6F 72 65 6E 7A 6F 04 04 E7 07 .....Lorenzo..ç. 0010: 07 01 52 43 43 0D 0A ..RCC.. ;;;;; this is it USER>set viewlb=##class(%Utility).FormatString(lb) USER>write viewlb $lb(1,"Lorenzo",2023,"RCC"_$c(13,10)) USER>zwrite viewlb viewlb="$lb(1,""Lorenzo"",2023,""RCC""_$c(13,10))"
go to post Robert Cemper · Aug 26, 2023 Objectscript uses double quotes for strings.Single quote is Negation 'Sample Data looks for variable Sample >>> NOT Sample
go to post Robert Cemper · Aug 25, 2023 Totally correct.This is what the example describes:and the consequence is that you have to spin through ALL GetOrgUpdatesResponse objectsA less impressive design.So you need to add an index on the ELEMENTS of your Property Organizationsto find all affected objects.some example of how to
go to post Robert Cemper · Aug 24, 2023 in this case store it in +$HOROLOG format as explainedand leave the conversion to YYYY-MM-DDT00:00:00Z to outputusing $system.SQL.TOCHAR(+$h,"YYYY-MM-dd")_"T00:00:00Z" or $zd(+$h,3)_"T00:00:00Z" +$h stands for your property DOB as %Date
go to post Robert Cemper · Aug 23, 2023 Your transformation produces a YYYY-MM-DD HH:mm:SS stringin contradiction Property DOB As %Date; expects an Integer similar to +$h The error is reported during Validation before %Save() of your record either you change Property DOB As %String; or use '$zdateh(source.DOB,7,,,,,,,,"")' then ##class(%Date).IsValid(...) is happy
go to post Robert Cemper · Aug 18, 2023 /// example of an extra light output to CSV Class dc.SQLExport Extends %CSP.Page { ClassMethod content() As %Status { set sep=";" set sqlStatement="SELECT ...... FROM ....." ,query = ##class(%ResultSet).%New() ,sc = query.Prepare(sqlStatement) set:sc sc=query.Execute() quit:'sc sc set cols=query.GetColumnCount() for col=1:1:cols { if col>1 write sep write query.GetColumnHeader(col) } write ! while query.Next() { for col=1:1:cols { if col>1 write sep write query.GetData(col) } write ! } quit $$$OK } /// filename should end with ".csv" ClassMethod toFile(filename As %String) As %Status { open filename:"WNS":1 else quit $system.Status.Error(5005,filename) use filename set sc=..content() close filename quit sc } }
go to post Robert Cemper · Aug 17, 2023 You OTHER thought is supported by CPIPEsee Execute Server Commands from Caché / Ensemble / IRIS