Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
[Migrated content. Thread originally posted on 28 January 2012]Can anyone please give the syntax to download a file from a web server to the client PC.I believe the code in C# would be: WebClient Client = new WebClient (); Client.DownloadFile("www.csharpfriends.com/.../index.aspx", " index.aspx");or WebClient Client = new WebClient (); Stream strm = Client.OpenRead ("www.csharpfriends.com/.../index.aspx");Thanks - I am new to Visual COBOL, and Object programming, so am struggling with "translating" C# to COBOL.
[Migrated content. Thread originally posted on 26 January 2012]We use C$REDIRECT with Handler-Type-Pre set to true so that the Handler Program does what it is going to do, then Extend will do what it does. Most of the time this works fine, but, when I process a Write statement on a Line Sequential file, I get an error 44 which means that the record size has changed. For a Sequential File, my Handler program does nothing. The following is the first line of code in my handler program:IF HANDLER-ORGANIZATION-SEQUENTIAL GOBACK.I suspect it has something to do with the fact that the Extend runtime (8.1.2.1) adds a carriage return and line feed to the end of each record in Line Sequential files, thus making an 80 character record actually have 82 characters. And somehow, just by entering the C$REDIRECT Handler program, something happens to make Extend think the record size has changed.A Binary Sequential file works just fine, as do Vision files. Any ideas greatly appreciated!
[Migrated content. Thread originally posted on 26 January 2012]Hello,I am trying to execute this command:Dialog.win \\\\0040 12614401Under RM/COBOL it works without problems. As you can see, there are two parameters.I am doing the CALL like this:call visualcobolcall "system" using fp-mandatoAnd the following error appears:sh: \\0040: not found | &n
[Migrated content. Thread originally posted on 25 January 2012]I have tried to create a web application for first time under cobol (netexpress) but i could not continue, because this message [ form designer requires microsoft internet explorer 4.01 or greater to installed on this machine... form designer can not continue] , and i am already have internet explorer on my system]is any one can help me. thanks
[Migrated content. Thread originally posted on 26 January 2012]Our application is hosted on HPUX, with an Oracle Database, COBOL and Oracle FormsWe are looking at migrating from Oracle Forms to Forms2Net (which will require IIS changes in the web-server from our current one of Apache) - and that is a separate issue. My question, and I am a .NET developer not a COBOL developer, is the following:If we wanted to migrate the UNIX hosted COBOL to Visual COBOL, would that have to be the JVM version of Visual COBOL or could we do the migration to the .NET version which would enable us to leverage other .NET development we are performing?Basically our architecture would change to HPUX as DB server, Windows 2008 IIS as web-server, and place the Visual COBOL .NET component into an application server (probably the same box as the windows IIS server initially)?
[Migrated content. Thread originally posted on 16 January 2012]Hello,What is your road map for Windows 8? My boss wants to now if we could build applications under WinRT soon.
[Migrated content. Thread originally posted on 26 January 2012]Hello,I have this code (from the Microfocus documentation) to testprogram-id. StringAdd. thread-local-storage section. copy "javatypes.cpy". 01 lsNewPtr pointer. 01 lsSize jint. *> type defined in javatypes.cpy 01 i jint. 01 lsStatus jint. 01 lsBigBuffer pic x(1024). linkage section. 01 lnkJString mf-jstring. 01 lnkJStringBuffer mf-jstring. 01 lnkString pic x(256).01 lnkStringbuffer pic x(256). procedure division using lnkJString lnkJStringBuffer. set address of lnkStringBuffer to ptr2string of lnkJStringBuffer. set address of lnkString to ptr2string of lnkJString *>Check that lnkJStringBuffer is a Java StringBuffer if capacity of lnkJStringBuffer > 0
[Migrated content. Thread originally posted on 23 January 2012]Hi,I'm evaluating Server Express Remote Development Option and have a question concerning debugging remote programs.In my setup I'm not using the compile functionality in Eclipse to compile my programs. I'm compiling my programs using the Server Express compiler on the shell of the remote machine. It places the .so-Files and .idy-Files in the directories I want them to be.In my Eclipse project I have the correct source code of my program and in the debugging settings (Wait for Remote Application Attachment) I tell the debugger where to find the .idy-Files for debugging. At that point everything works. The application attaches and I can step through the program.My problem is that breakpoints and watchpoints don't work. They only work when I'm using the .so-Files and .idy-Files generated by compiling through Eclipse.Is there a possibility to debug (and use breakpoints of) cobol programs that where compiled
[Migrated content. Thread originally posted on 19 January 2012] I wan't to call a cobol program from c# and have two parameters which are defines as group elements.Is there a way to call the cobol without writing a proxy program which then takes every single item into account?I just wan't to give the cobol program a byte[] (sbyte[]) or a pointer to that array.In java this is possible!
[Migrated content. Thread originally posted on 25 January 2012]Hello,I have found that these kinds of call "system" do not work: CALL VisualCOBOLcall "SYSTEM" USING "sh Version.win"The script is never executed and weird characters appear after the script's name.I had to change it in the following way: CALL VisualCOBOLcall "SYSTEM" USING "sh Version.win "Do you see the difference? Isn't it strange?
[Migrated content. Thread originally posted on 23 January 2012]Hi,I'm using the Server Express Remote Development Option and have a question configuring where to find the copybooks when parsing my programs. In the documentation it says that I should create copybook paths outside the project as linked resources. But the project settings (COBOL Remote Project) do not allow to create linked ressources.Does anyone has a clue why I cannot create linked ressources? Or how can I tell the parser where to find the copybooks outside the project?Thanks,Sebastian
[Migrated content. Thread originally posted on 16 January 2012]I am trying to setup Micro Focus Server (Server for COBOL) on 2 PC, with the license database on PC1, as described in documentation.microfocus.com:8080/.../index.jsp On the first one, PC1, I have installed Micro Focus Server and created a license database in c:\\mfaslmfThen I shared the folder granting everyone full permissions.On the second one, PC2 I've installed Micro Focus Server and pointed the license database to \\\\PC1\\mfaslmf, and I've created an environment variable ASLMFNET that also points to this location.I can run my application on both PCs, so they both have access to the database.However, when I run AppTrack.exe on PC2 to check the number of licenses in use, the number is 0!If I run AppTrack on PC1 (the uses the database as local) it says 1 license in use - eventhough the application is running on two PCs by two different users!I've also tried placing the database on a proper network drive - the
[Migrated content. Thread originally posted on 22 January 2012]Hi,I'm doing a program that interface a .NET dll with 9.0.0 runtime.I have included my .NET assembly in my COBOL programs and created the file .DEFwith NETDEFGEN utility. Then I used the following "CREATE" statement to create a new instance:create "@ePrescription"NAMESPACE is "ePrescription"CLASS-NAME is "ePrescription"CONSTRUCTOR is @CONSTRUCTOR1()HANDLE is eprescr-handleFILE-PATH is "bin\\eprescr.xml".I used FILE-PATH because the assembly does not reside in the GAC and is not in same directory as "wrun32.exe".The runtime is in "D:\\wfar\\bin" directory.The assembly is in "D:\\wfar\\bin\\ePrescription" directory.The "CREATE" statement successful, but "MODIFY" of first method goes in exception with the following message:Unable to load file or assembly "ePrescriptionCore, Version=1.0.0.0, Culture=Neutral, PublicKeyTok
[Migrated content. Thread originally posted on 17 January 2012]Hi :-)Have anyone tried to change the priority of a running process from within AcuCobol program ? I've read that it can be done from VB with a call to SetPriorityClass, but I would like to do the same call from within AcuCobol.Any help would be appreciated.
[Migrated content. Thread originally posted on 20 January 2012] Hello All,I am trying to explore whether we can used memory mapped files on windows to implement shared memory (using c ) that will be used from within cobol.I have number of processes (running cobol code) that need to share a common memory area that could be implemented using memory mapped file.I want to know if it is possible that this file can be accessed from within a cobol program (could a pointer be returned from a C code to cobol code so that we can set the address of a cobol structure to the memory mapped file)I am using netexpress 5.1 and visual studio 2010 express.-PTeng
[Migrated content. Thread originally posted on 20 January 2012]Hi!I currently need a way to be able to see if a directory exists out on the server before a file is created.I cannot use the DIR command with "SYSTEM", DIR always returns a a exit code of 0.Any suggestions??Thanks!
[Migrated content. Thread originally posted on 20 January 2012]hi,im starting to get a windows error message saying "error creating window handle" and after some googlerling found the following:-stackoverflow.com/.../winforms-issue-error-creating-window-handlesocial.msdn.microsoft.com/.../it mentions this code:-dim index as integerfor index = ctlFLP.Controls.count -1 to 0 step -1 ctlFLP.Controls.Item(index).dispose()nextBut how do i cobolize it and where should i put it in my program.pls help!many thanksneil.
[Migrated content. Thread originally posted on 19 January 2012]Hi All,Does any one know how to COBOLIZE this?support.microsoft.com/.../301279Many thanksNeil.
[Migrated content. Thread originally posted on 16 January 2012]Hi,Is there "a clever" .NET way to read a Windows .TXT file thats been created using say "NOTEPAD.EXE"So my TXT file would contain 30 lines of varying bits of text?Thanks in advance for any help.Kind regardsNeil Willby.
[Migrated content. Thread originally posted on 04 January 2012]Hello,We are meaning to perform a demo using Visual COBOL for our executive team, but we also want this demo to be running in a computer that has Windows XP Embedded (it is a computer with a tactile screen). The machine is a Toshiba WILLPOS A-20. Our provider has told us that is 100% compatible with Windows XP, but it hasn't all the services activated, so I tried to activate all the services I could, but the license installation keeps crashing.Do you happen to know what kind of problem is all about?Thanks
[Migrated content. Thread originally posted on 11 January 2012]I am programming in Acubench and added the office12\\msword.olb from the ActiveX Definitions Generator. When I placed this Definitions file into my .cbl program and compiled, I received compile errors within the Def file.For example: line 8715: RETURNING expected, PROPERTY-GET foundI opened the file and this is the line of code the error refered to:*[Class: @_Document] Dummy1 PROPERTY-GET, 503, @Dummy1*[Class: @_Document] OMaths PROPERTY-GET, 504, @OMaths RETURNING "OMaths*", TYPE 9Has anyone had this problem before?
[Migrated content. Thread originally posted on 05 January 2012]Hi,my application crashes (the error is (FILE 'XMLCHK'): 119 name is not unique (binding symbol is 'MFCHK_XMLRESET'))when executes the xml generate statement. This is happen only with Server 5.1. With older version (Application Server 4) or when i'm running the program from NetX it runs correctly. We need to change our Cobol run-time system to a newer version but this error is fatal (we are using alot of XML files). Can you help me? Thanx Andrew
[Migrated content. Thread originally posted on 11 January 2012]I am using a grid with a grid data field declared as pic x(80). I set the column width to accomodate typing up to 80 upper case letters. If the operator uses lower case or numbers, more than 80 can be typed but of course only 80 are captured in the grid data field. Is there anything like max-text that can be used to stop the operator from typing after 80 charaters are reached regardless of font or character size?
[Migrated content. Thread originally posted on 11 January 2012]I am generating a report using the report writer. How can I stop a blank line from printing? For example if I have allocated space for 5 Comment fields(80 char a piece) to print, one on each line. For a particular record only the first 2 Comments field have data in them, how can I prevent the report from producing 3 blanks lines of data after the first 2 are printed?
[Migrated content. Thread originally posted on 11 January 2012]Recently, users are intermittently getting this error when working with Commercial Policies. It seems to happen when processing endorsements, applying payments, removing terrorism notices or approving policies (no clear pattern, in other words). It throws them out of the app, however when they reenter it again, they are able to process without the any issues.It is an 'Attempt to access item beyond bounds of memory', but I can't find the manual referenced in your knowledge base (Handling Protection Violation Errors in the 'Program Development Manual' Chapter 5) on this website to try and find out why, suddenly, this is occurring. I have gotten it to occur in animate and a mfdebug.log is produced, but I'm not sure how I can use this for debugging purposes.
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.