Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
The executable I want to debug is in C:\\PSMJ\\bin\\Release, but the data files the program accesses are in c:\\Surveys\\Bonus\\2011. When I start debugging it immediately tells me it can't find the files referenced in the program. How can I tell the debugger where to look for the data files?
This is a how-to COBOL question. We run acu-cobol with a customized runtime that includes a C routine for a custom form/screen handler. We are in the process of converting our source code to use accepts & displays instead of our custom forms routines. In our old routines, if you choose to edit an alphanumeric field, we display the current value of the field & let the user type over it. To change a field with the value "WASHINGTON", you could type the word "ADAMS" & press enter and all characters after ADAMS were erased. When we do the same action using accept/displays, the trailing letters are not erased when you press enter, and you are left with the value "ADAMSNGTON". Is there any way around this, other than simply resetting the field to spaces before entry?
Looking for possible SFTP client options that are open source, and provide a CLI, a .NET assembly and/or COM library. (using Axdefgen or Netdefgen) Tried WinSCP, but AcuCobol does not support passing .NET objects as parameters. Any suggestions?
Is there a limit on the size or number of screen section items? I have a screen with 10 tabs and the usual labels, entry fields, etc. on each tab. I added another tab and screen items, and now I get the error "Statement too large at code address 4058". I can add the tab and the first 4 lines of screen items, but the 5th line of screen items seems to send it over the top. Any suggestions on how to get around this?
I'm an old pro at COBOL, and have a suite of programs I want to implement in MicroFocus Cobol. Unfortunately, I am utterly confused about basic terminology and structure of MicroFocus and Visual Studio. If you've think you could maybe spend an hour to help me get set up (via my GoToMeeting), I'd be more than happy to pay you for your time. Please respond here, or to carrfamily@mindspring.com Thank Tim Carr
Hi, Now I can log on to the FTP Server whats the COBOL code to send a small text file. Thanks Neil.
Hi, Does any one know of any cobol code to check if a local pc has an internet connection? Many thanks Neil.
Hi All, Found how to call an FTP site from with in a Visual Cobol program, but can any one advise how to add a username password so it logs in? set cFtpWebRequest to type "System.Net.FtpWebRequest"::"Create"("ftp://ftp.TestSite.com") as type "System.Net.FtpWebRequest" Thanks in advance. Neil.
I would like to open the main COBOL program and drill down to the copybooks, then the IDE “remembers” the variables used in the main program and don’t mark them as unused (strikethrough), but if this feature is “faraway” I would suggest to be able to turn off the feature only for copybooks.
[Migrated content. Thread originally posted on 08 May 2012]Have a problem with x"91" call outs in managed code.Code reads as... 01 command-lin-string pic x(80) value "dir/w". 01 RESULT PIC X COMP-X. 01 FUNC PIC X COMP-X VALUE 35. 01 COMMAND-LIN. 03 COMMAND-LIN-LENGTH PIC X COMP-X VALUE 0.:: DISPLAY COMMAND-LIN-STRING UPON COMMAND-LINE. CALL x"91" USING RESULT, FUNC, COMMAND-LIN. IF RESULT = 0 MOVE "01" to lnk-error-status END-IF.No DOS box appears showing a directory listing (as it does in UNMANAGED code) but RESULT comes back as 0! Managed code as defined by Application (program) output as Class library under .Net Framework 4.0
Hello friends, I'm obtaining the follow error when trying to access a cgi program through IE "I/O error : file '\\\\SERVER01\\payroll\\FP014.TXT' error code: 3/7 (ANS85), pc=0, call=1, seg=0" What does this error code means? I created a group "HR" wich can acess the folder payroll and its contents. The program called FP014H.exe is trying to read the "FP014.txt" file on \\\\server01\\payroll. The program is located on C:\\Inetpub\\intranet\\CGI-BIN\\FP014H.exe, i'm acessing on IE: "server01/.../FP014H.exe" This problem occurs wheter i call the program on IE, when logged on a HR group user or not.
Thanks to all those for attending the Visual COBOL webinar on Thursday. Here's the Q & A transcript from the webinar: Q: I’m currently using Object COBOL on Server Express in a Linux environment. We use a main menu program and then via linkage call in up to 1000 other programs. All is good except that still limited to 80 char line displays @ 24 rows and want to break out. A: Visual COBOL character applications can use more than the standard 80 cols by 24 rows, see our ACCEPT/DISPLAY documentation for more details. If you really want to breakout, then it’s time to switch to a more graphical presentation. As Mike demonstrated on the webinar, .NET has some great options for you. Amongst other things, the effort involved will depend upon how many screens you have, how coupled the business logic is to the user interface and whether you want web or thick client access to the application. Good news is, we can help assess and advise. If you want to know more, please contact me directly: sc
[Migrated content. Thread originally posted on 31 May 2012]Hi,i download the new Visual Cobol 2.0 for Windows to test.Whats news in Visual Cobol 2.0 ?
The following code works in our NET EXPRESS code... $set ooctrl( P) ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. &n
Hello folks, I am dealing with quite a lot of fields in the CALL "PC_PRINTER_DEFAULT_FONT" and in the CALL "PC_PRINT_FILE" but I have never worked with COMP-5 format. Would please send a couple of examples or explanations to me. I did not succeed in the first seaches throgh the Internet. Thanks a lot, in advance, Cheers. Rui Natal
Hello folks, I could see that in the properties of a CALL "PC_PRINTER_DEFAULT_PROPERTIES" we have a field named cblte-pp-paperwidth. I could observe that the printing keeps a little margin at the left and at the right. My customer would like to print in all the width of the paper, with no margin. Please do not ask me why, OK ? The question is: How do I have to code this ? Any sample, example or hints and tips ? Looking forward to hearing from you soon, Cheers. Rui Natal
Hi Guys, I have a programmer that is stuggling with a few concepts. We have InstantSQL configured and working beautifully. We would like to perform a query and then insert the result of the query into COBOL variables to then compare and do some business logic within Cobol's files. The below query returns about 50 lines each with 8 columns. What would be the most efficient way for cobol to use this data and apply business logic for example does the invoice id exist in cobol's data files? My programmer is going down the track of using a work file for this rather than processing in memory. Any help with concepts on feeding a result of a query into cobol variables to apply business logic for such things like does the invoice already exist in the cobol data (index seq. files) or not, if not, write to the data to the file. Regards Magishme See below for example code... -------------------------- 01 ws-emp-data. 05 ws-index
Using Visual Cobol 2.0 I am getting a return-code value of 255 when calling a .DLL module. I get this return code immediately after calling the module (I display return-code as the first line in the sub-routine). Is this some kind of run time error? I've tried changing compiler directives and it doesn't seem to help. Any clues as to how I figure out what the error is? Thanks!#visualcobolreturn-code255
Is there a way to obtain the folder wich i'm running an application? I have a program that is being used in two different folders. It uses the same logic for both, but i can't mix it's files. Altering the programs to select wich folder to run is not a option. I need to do this without user input. Thanks in advance
Sorry to bother woth this one again Chris. You wrote we should deinstall VisualCobol and VisualCobol_server and then reinstall VisualCobol. We havent got the setup file for VisualCobol any more. Would the VisualCobol for eclipse solve the problem too?
We're using VisualCobol on Cent OS (64-Bit) This message is received when trying to compile: Load error : file 'bin/cobchecker64'error code: 173, pc=0, call=1, seg=0173 Called program file not found in drive/directory I've seen the answer in kb.microfocus.com/.../article.aspx where we are advised to get the product Server Express and I've also seen kb.microfocus.com/.../article.aspx in which it is suggested the $COBDIR should be first when setting the LD_LIBRARY_PATH. Even though the article was referring to another product, I gave it a try but it didn't solve the problem. I've also seen a further article: supportline.microfocus.com/.../KBdo278.HTM which advised to not install in several directories. We have a $HOME/VisualCobol directory and also a $HOME/VisualCobol_server directory. Whenever I tried to install to an already populated directory I got the error message that the directory is not empty. How then can we not install to 2 diff
This might sound complicated but... Our 'current' NET EXPRESS system is built using ONE .EXE which then calls .int files as required. We're trying to replicate this idea by having a single 'top level' .EXE file (A.EXE) which then calls out to .DLL files (representing the old .ints). Some of the .DLLs we've built contain a 'top level form program' which contains new 'managed code' which will then call out to 'non managed' code (old COBOL code in a VisCobol wrapper) which we've built as .DLL files in their own right but are referenced within the 'managed code .DLL). For test purposes and to make sure these new 'top level' .DLLs work we initially built them as .EXE's in their own right and they work perfectly well. We've then changed the output type for these top level programs, to 'Class Library', and built them as .DLLs. We've then attemped to 'build' these .DLLs into A.EXE as adde
Ladies and Gentlemen, I have used cobconfig.cfg Environment Variable and the output was just OK in a A4 style sheet. But now I have got to print a report in the landscape style. Any hints and tips. Thanks a lot in advance. Cheers. Rui Natal
Hi, Using the command DSDIR (in the NX Dialog) I can find and return to the program a filename from my PC, which works great. However is there a command that works like the Visual Cobol Toolbox option "FolderBrowserDialog" this can locate and return a Directory name? Many thanks Neil.
Hi, I just got a new PC that has Windows 7 installed, and I am having issues compiling, The compiler itself runs fine, but It seems the RMPATH is not being set because it cannot find my copy libraries. my RMPATH is set correctly in the registry configuration: K:\\WOW\\8.0\\COPYLIB;C:\\PROGRA~2\\Liant\\RMCOBO~1;, but when I compile, I get 914 errors because the copylibraries are not found. Any ideas on what I can do, or what I have setup incorrectly? Could it be my rights? I am set as an Administrator...
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.