RE: How do I define a Nullable DateTime variable in Visual COBOL ?
The System.Nullable generic should do what you want. You can use that in COBOL with code such as:- program-id. Program1 as "Nullable.Program1". data division. working-storage section....
View ArticleHow do I define a Nullable DateTime variable in Visual COBOL ?
The DateTime fields I am inserting into my database can sometimes be null. I want such fields in the table to show as null, not as "0001-01-01 12:00 AM". You do this In C# by using DateTime? as your...
View ArticleRE: How do I define a Nullable DateTime variable in Visual COBOL ?
Thanks. This worked for updating my database.Phil Levin
View ArticleRE: Managed DLL, two classes with EXEC SQL, only 1 bnd - possible?
Your question states that you are creating managed COBOL .dlls yet you are using the DB2 ECM to precompile your embedded statements.Currently there is no managed code version of the DB2 ECM so I am...
View ArticleManaged DLL, two classes with EXEC SQL, only 1 bnd - possible?
Hello!I have a question regarding Managed Cobol DLLs with more than 1 classes and EXEC SQL Statements.At the moment, if I have a project, with 2 Classes, TestA and TestB, and both have EXEC SQL...
View ArticleRE: Regarding exposing webservice
Hi Michael,Thanks for your help. I have modified the web service.<%Set oXmlHTTP = CreateObject("MSXML2.ServerXMLHTTP")oXmlHTTP.Open "POST", "http://localhost/test/service.wsdl",...
View ArticleRE: Error 163 - how to set F switch
You can either set the COBSW environment variable to COBSW=-F prior to the execution of your program or you can start the program passing (-F) on the command line:myprog (-F)Thanks.
View ArticleRE: How wide in bytes is PIC S9(12) -- 12 or 13 bytes ?
It would be 12 as S takes up no data. Although when displayed, the + or - will be trailing. For example S9(3) would display 123- given that the value you declare is negative. Hope this helps. I myself...
View ArticleRE: Error 163 - how to set F switch
Thank you Chris. I've opened my .CONFIG file, to see an "Application Settings" window with 2 tabs "Environment" and "COBOL switches" and added an environment variable with name COBSW and value -F but...
View ArticleRE: How wide in bytes is PIC S9(12) -- 12 or 13 bytes ?
Yes, Moto - it's 12.Cobol has a "length of" operator you can use to find the length of any field - see below. For group items, the Editor tooltips also include the length of the item - though...
View ArticleRE: Winforms: calling 2nd form
The call statement is used to execute COBOL procedural programs as subprograms.When you want to call a method in a COBOL class such as a Windows Forms class you need to instantiate the class as an...
View ArticleRE: Winforms: calling 2nd form
Thank you - that works, and I understand more, so a double win!
View ArticleWinforms: calling 2nd form
I am working through "Tutorial: Developing .NET Managed COBOL", trying to learn Visual COBOL. I developed Form1, then Menu1 and made it my startup program - all fine and working. Then to extend the...
View ArticleError 163 - how to set F switch
I am getting "error 163 illegal character in numeric field" messages. How do I set the F switch to suppress these messages in Visual COBOL?Thanks.
View ArticleRE: Error 163 - how to set F switch
You cannot place the COBSW environment variable in the app.config file because the app.config file is processed after the run-time is initialized and COBSW needs to be processed during the run-time...
View ArticleRE: Regarding exposing webservice
The value of the Content-length header has to be the length of the message-body, not the string "length", which doesn't mean anything.Look, I'll say this once more: Trying to create a SOAP request by...
View ArticleRE: Regarding exposing webservice
Senthil, please take another look at my original response to this question.You can use the WSDL file generated by Net Express during deployment as input to create a .NET client automatically, which...
View ArticleRE: How wide in bytes is PIC S9(12) -- 12 or 13 bytes ?
For more information as to how the sign character is actually stoired in numeric display type fields, please see the documentation in the COBOL Language Reference guide here:
View ArticleHow wide in bytes is PIC S9(12) -- 12 or 13 bytes ?
My confusion over this could be causing my bug. I'll be grately deepful for the correct answer.
View ArticleRE: How wide in bytes is PIC S9(12) -- 12 or 13 bytes ?
Yes, as previously posted, the size is 12. Another way to confirm this is with a datamap in the listing, that is, when the LIST() and DATAMAP directives are specified for the compilation. Here's the...
View Article