Forum Post: RE: Read file in COBOL
I did this: New project empty project. Then new file program in Visual Studios. I build it and run it from the IDE. Have I missed something very fundamental?
View ArticleForum Post: RE: Read file in COBOL
thomasbn94 This will work for a flat file for INPUT, for OUTPUT and also for EXTEND SELECT FILEA ASSIGN TO 'C:\MyFolder\FILEA.txt' ORGANIZATION IS LINE SEQUENTIAL...
View ArticleForum Post: Boolean functions
Hi, I would like to know whether it is possible to write a COBOL function that returns a true or false value so that one can write: if myfunc() then true-branch else false-branch end-if. I can...
View ArticleForum Post: RE: Boolean functions
COBOL has a facility for this - it's called the level 88 condition-name - maybe not exactly how you are visualizing it, however. Google "COBOL level 88" to read all about it.
View ArticleForum Post: RE: Boolean functions
It looks like it isn't currently possible to have a user-defined function return a pic 1 item. I've reproduced the "Undefined error. Inform Technical Support" error message with my own test program....
View ArticleForum Post: RE: Boolean functions
Indeed that is not what I'm looking for. See my (upcoming) reply to Michael. Leigh.
View ArticleForum Post: RE: Boolean functions
Michael, Thanks for that. I know about 88 levels. To use an 88 level I have to do: 01 w-flag pic x. 88 wc-ok value "y" false "n". call "validformat" using w-data w-flag. if wc-ok then...
View ArticleForum Post: RE: Visual COBOL - organization is xml
Hi Chiris, what is the relation between XML-DATA and WS-XML-DATA? How can we define the size any formula?
View ArticleForum Post: RE: Boolean functions
Yes, I agree - level-88s are definitely not the same thing. I did raise an RPI for the issue with functions that return a pic-1 item, but for now the only solution I know of is the one you had in your...
View ArticleForum Post: RE: Function to Create an ADO Connection
Hi I would like to make sure, that you received my mail with the test solution for OpenESQL und ADO sent on April 8th. Freundliche Grüsse Werner Lanter
View ArticleForum Post: RE: Visual COBOL - organization is xml
Hi Chris, I do have one more query on where I can declare multiple array structure like two dimensional in same XML format. Please advise.
View ArticleWiki Page: Visual COBOL Web Services Tutorial for Visual Studio
Problem: Is there a simple example of creating web services using Visual COBOL for Visual Studio? Resolution: Attached is a tutorial that will demonstrate how a simple COBOL program can be used to...
View ArticleWiki Page: Visual COBOL Web Services Tutorial for Windows Eclipse
Problem: Is there a simple example of creating a web service using Visual COBOL for Windows Eclipse? Resolution: This tutorial will demonstrate how a simple COBOL program can be used to generate a web...
View ArticleWiki Page: Visual COBOL Web Services Tutorial for Eclipse Remote
Problem: Is there an example of creating a simple web service that combines using Visual COBOL for Eclipse and Visual COBOL Development Hub? Resolution: Attached is a tutorial that will demonstrate...
View ArticleForum Post: RE: Visual COBOL - organization is xml
Hi Partha, In the example in this thread WS-XML-DATA will be the target field that will receive the generated XML upon completion. The field names under XML-DATA will be used as the tag names within...
View ArticleForum Post: Best of two Worlds
In the Samples supplied with Visual Cobol you find examples on how to call (native) Cobol code from C#. But, what about the other way 'round? Calling C# from Cobol? Enter this as a search and you find...
View ArticleForum Post: Cobol editors
Can you download both eclipse and visual web developer to the same machine and use either one for coding cobol programs?
View ArticleForum Post: Formatting numeric data items
Hello, I am trying to display the value of a data item in a textbox in a managed COBOL program. The variable is defined 01 DecimalValue PIC S9(5)V99 and contains the value 99.00. When I put that...
View ArticleForum Post: IList[string] instead of List[string]
Why, when I set a variable to a new instance of List[string], do I get an IList[string]? They aren't interchangeable and by giving me an IList[string] I have no access to any properties or methods not...
View ArticleForum Post: RE: Formatting numeric data items
Hi Add this in 01 DecmialValue-E PIC ZZ,ZZ9.99-. then MOVE DecimalValue TO DecimalValue-E. and then work with the 'edited' field DecimalValue-E which will show 4 leading spaces 99.00 and one...
View Article