This is a weird situation we have having. We are using C# (dot net) to launch a program that prints some stuff to the spool.
The problem is that the report uses *DATE to print the current date in the report, and the date always show 21/06/2008! (june 21 2008)
We can only guess that the interop dll uses a different job date. Has anyone had this problem?
The program that is being called just uses EXCEPT HEADER and the headers just prints *date.
The problem is that the report uses *DATE to print the current date in the report, and the date always show 21/06/2008! (june 21 2008)
We can only guess that the interop dll uses a different job date. Has anyone had this problem?
The program that is being called just uses EXCEPT HEADER and the headers just prints *date.
PHP Code:
string AS400Name = "192.9.200.1";
string AS400User = "webusr";
string AS400Password = "webusr";
string AS400Pgm = "PIEDRA";
string AS400Lib = "PRODUCTEST";
cwbx.AS400System AS400 = new cwbx.AS400SystemClass();
cwbx.Program program = new cwbx.Program();
AS400.Define(AS400Name);
program.system = AS400;
program.system.UserID = AS400User;
program.system.Password = AS400Password;
program.LibraryName = AS400Lib;
program.ProgramName = AS400Pgm;
AS400.Signon();
AS400.Connect(cwbcoServiceEnum.cwbcoServiceRemoteCmd);
if (AS400.IsConnected(cwbcoServiceEnum.cwbcoServiceAll) != 0)
{
try
{
program.Call();
Console.ReadLine();
}
catch (Exception exc)
{
foreach (Error error in AS400.Errors)
{
Console.WriteLine(error.ToString());
}
}
}
Comment