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

RE: Read file in COBOL

The whole program: puu.sh/.../07672df381.pngCompile-time error: puu.sh/.../493416ff0c.pngWhenever I get the file reading correct I can start to refine the program...I did change from " to ' but I got...

View Article


RE: Read file in COBOL

Hello, I didn't read all the replies... here's with the DISK clause included:puu.sh/.../ef499ac98f.pngI tried with the whole file path but i got the same error- Thomas

View Article


RE: Read file in COBOL

Hello Thomas,Thanks for providing the screenprints, but I still don't see anything that would cause this compiler error. I don't even see COBCH1588 in the documentation.Attached is a very similar to...

View Article

RE: Read file in COBOL

It looks like you're getting a file status of 35, which is a file not found.  If the file does not exist or if the ID that the program is running under doesn't have access to that file, when you open...

View Article

RE: Read file in COBOL

I copied the contents of NewData.cbl into a new source file in a new project and it compiled without errors. However, will "hello" be written into that file? I opened it after the program had executed...

View Article


RE: Read file in COBOL

From the error message you are getting (as shown in your latest screen shot), it appears you may not have the environment set up correctly. Are you trying to execute the program at the command prompt?

View Article

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 Article

RE: Read file in COBOL

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


Read file in COBOL

Hello,I got this: ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT F1 ASSIGN TO "test.dat".I get this error at the last line: "Invalid ASSIGN name" which is "test.dat". I've also tried...

View Article


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 Article

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 Article

RE: Boolean functions

Indeed that is not what I'm looking for. See my (upcoming) reply to Michael.Leigh.

View Article

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 ...Or:...

View Article


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>...

View Article

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 Article


Visual COBOL - organization is xml

[Migrated content. Thread originally posted on 14 February 2011]Hi,i'm testing Visual Cobol with Eclipse and want to make an xml file.When i use organization is xml, eclipse gives me a compilation...

View Article

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 Article


RE: Function to Create an ADO Connection

HiI would like to make sure, that you received my mail with the test solution for OpenESQL und ADO sent on April 8th.Freundliche GrüsseWerner Lanter

View Article

Function to Create an ADO Connection

Let me start by saying that I'm very, very new to Visual COBOL.  I have been programming primarily in Visual Basic since version 3 (now VB 2013).  I have written many applications through the years for...

View Article

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


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