Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Browsing all 4356 articles
Browse latest View live

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 Article


How 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 Article


RE: How do I define a Nullable DateTime variable in Visual COBOL ?

Thanks.  This worked for updating my database.Phil Levin

View Article

RE: 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 Article

Managed 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 Article


RE: 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 Article

RE: 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 Article

RE: 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 Article


RE: 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 Article


RE: 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 Article

RE: 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 Article

RE: Winforms: calling 2nd form

Thank you - that works, and I understand more, so a double win!

View Article

Winforms: 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 Article


Error 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 Article

RE: 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 Article


RE: 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 Article

RE: 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 Article


RE: 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 Article

How 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 Article

RE: 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
Browsing all 4356 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>