A Lim

Forum Replies Created

Viewing 10 replies – 1 through 10 (of 10 total)
  • Author
    Replies
  • A Lim
    Participant

      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.

       

       

      A Lim
      Participant

        So 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?

        A Lim
        Participant

          Sorry, 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 in

          set OrderNo(Ord) 0
          set AccNo (Ord) 0
          set Code(Ord) 0
          foreach 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) $xmlData
          incr OrderNo(Ord)
                        }
                        AccNo {set i AccNo (Ord)
             set AccNo ($i) $xmlData
             incr sameaccessNum(Ord)
          }
          Code{set i Code(Ord)
          set Code($i) $xmlData
          incr 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?
          A Lim
          Participant

            Reading 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.
            in reply to: 6.1.1 Documentation #83869
            A Lim
            Participant

              So it is not possible to have the documentation separate from the cloverleaf server?

              in reply to: Preventive Maintenance #80913
              A Lim
              Participant

                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!

                in reply to: Preventive Maintenance #80912
                A Lim
                Participant

                  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.

                  in reply to: Preventive Maintenance #80905
                  A Lim
                  Participant

                    No one does anything to cloverleaf periodically to ensure it runs smoothly and with no issues?

                    in reply to: hcicmd save_cycle issue #77485
                    A Lim
                    Participant

                      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.

                      in reply to: hcicmd save_cycle issue #77482
                      A Lim
                      Participant

                        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.

                      Viewing 10 replies – 1 through 10 (of 10 total)