Example #1
0
        public static void getErrors(string lib, string obj)
        {
            string filetemp = Path.GetTempFileName();

            List <string> commands = new List <string>();

            lib = lib.Trim().ToUpper();
            obj = obj.Trim().ToUpper();

            commands.Add("ASCII");
            commands.Add("cd /QSYS.lib");
            commands.Add("recv " + lib + ".lib/EVFEVENT.file/" + obj + ".mbr \"" + filetemp + "\"");

            IBMi.runCommands(commands.ToArray());

            ErrorHandle.doName(lib.ToUpper() + '/' + obj.ToUpper());
            ErrorHandle.setLines(File.ReadAllLines(filetemp));
        }
Example #2
0
 public void runCommands(string[] commands)
 {
     IBMi.runCommands(commands);
     loadNewCommands();
 }