Forum Replies Created
-
AuthorReplies
-
April 16, 2025 at 3:30 am in reply to: How to convert data in xml into array or list using tcl script #122003
I tried using list, but the same issue – the next section Rpt_2ndReqExam was not read by the script once i added as list for Rpt_SameRptOrder.
April 16, 2025 at 2:19 am in reply to: How to convert data in xml into array or list using tcl script #122002So if the list is {{ORD0029 C628 Proc1} {ORD0030 C628 Proc142} {ORD0049 C638 Proc133} {ORD0089 C700 Proc190}} and to find which item in the list has ‘ORD0049’ I would do set ordind [lsearch -index 0 -exact $orderlist “ORD0049”] ? It would give me 3 since it is in the 3rd one?
And if I have this index number (ordind) could I find what value is in another list using that index number? So e.g. the above result index is 3, I now want to find the value with the same index in another list (docdate) say {{Doc1 Date1} {Doc 2 Date2} {Doc 3 Date3} {Doc 4 Date4}} which means I would want {Doc 3 Date3}, does that mean i just need to set Var1 [lindex docdate ordind] to get the value?
April 16, 2025 at 12:18 am in reply to: How to convert data in xml into array or list using tcl script #122001Sorry, been busy, forgot about this. Looking at this again.
What I did was having 3 variables OrderNo, AccNo and Code and use the following code to read it inset OrderNo(Ord) 0set AccNo (Ord) 0set Code(Ord) 0foreach line $xmldata {switch -exact — $xmlTag {SQLCode {switch -exact — $xmlData {…Rpt_SameRptOrder {set dataType $xmlData} ;…}}/SQL {set dataType “”}default {switch -exact — $dataType {…Rpt_SameRptOrder {switch -exact — $xmlTag {OrderNo {set i OrderNo(Ord)set OrderNo($i) $xmlDataincr OrderNo(Ord)}AccNo {set i AccNo (Ord)set AccNo ($i) $xmlDataincr sameaccessNum(Ord)}Code{set i Code(Ord)set Code($i) $xmlDataincr Code(Ord)}}}Rpt_2ndReqExam {…}}}}…}It works fine for this. No issue, and I can see values when I lappend to the debugLog the values of the three variables, but it no longer look into Rpt_2ndReqExam and store the values required in there.What is dictionary? Would storing into a list resolve the issue have?April 2, 2025 at 2:25 am in reply to: How to convert data in xml into array or list using tcl script #121974Reading of XML and parsing is not the issue – it has been done and works fine. It is the setting up of array to take in the values that is the issue. As long as array is not used, there is no issue in going through the XML file and getting all of the data, but it is n rows into a single variable, hence does not meet the requirement. If I add array, the array works, but the reading of the next XML section fails. I did nothing in the code other than just change to read the value into array variable instead of single variable. So it has to be the way I set up and storing the value in the array variable that is causing this. However, I could not figure out what is the issue.
-
This reply was modified 2 weeks, 2 days ago by
A Lim.
So it is not possible to have the documentation separate from the cloverleaf server?
David,
I have found 5.3 Operations Guide. I assume that’s what you are taking about in terms of “dealing with my question”?
I took a quick look at the pages of that document and I only see information on the different sections of the software, but nothing much on maintenance or preventive, unless we are talking about the troubleshooting section.
So maybe I am not looking at the right documentation… Would appreciate if you could help with more specific details? Thanks!
Interesting that most are running AIX or something other than windows. Unfortunately, the sites I am task to find out about PM on the servers are all running QDX on windows. The sites have either 5.3 or 5.7 version.
David, no I have not read the documentation as I don’t think I have a copy of them. I am rather new to the task and being loaded with such a task to come up with PM at a short period of time, it was a shot in the dark to see if anyone has something which I could based on.
Thanks for the responses all. Will have to mull over the documentation, looking for the information and also take in what you have given. If anyone could add on more on this, that would be of great help.
No one does anything to cloverleaf periodically to ensure it runs smoothly and with no issues?
Well, according to the log, the save cycle was successful, but there is no regular msg files found. The next day msg files does not contain the previous day ones that went missing, so looks like the save cycle did happen, but something happened somewhere and causes the old.msg files to be missing.
The script was not written by me, I inherited the site, and this is the 1st time I am looking at the script! I do know that the script remove the “old.msg” ones, then do a save cycle, and then rename the .msg files to something else instead of “old.msg” like “date/time.msg”. I am not sure if it was the save cycle that causes it or something else – like someone did a manual save cycle before it triggers.
But there were no error messages in the auto save cycle logs, and the old messages was not retained from the thread in the next save cycle time frame.
Russ,
Our daily filesize is not really that large, have not even reached 10MB yet, so I don’t think it’s a filesize limit issue.
I have check the SMAT filenames and they are definitely difference as they are using it to do some reconciliation matching (as a double checking system).
The only possibility that I could think of is that at the present moment when the save_cycle was run, there were things running in the thread, thus making it not possible for save_cycle to run. But I don’t exactly have any documentation or information on what could cause this to fail.
I always thought this would be part of a FAQ Q&A… But it does not look like anyone else has such issues before.
-
This reply was modified 2 weeks, 2 days ago by
-
AuthorReplies