Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
hi, does anyone know how to convert VB code below in to cobol? ChrW(&HF0A0) where ChrW = https://msdn.microsoft.com/en-us/library/microsoft.visualbasic.strings.chrw(v=vs.110).aspx and &HF0A0 = https://msdn.microsoft.com/en-gb/library/ms819564.aspx Thanks in advance. Kind regards Neil.
I'm trying to emails validation so 01 wValido condition-value. ...... move "mmsis@mmsis.com.br" to Lnk-Processo2 declare strModel as type System.Text.RegularExpressions.Regex = new System.Text.RegularExpressions.Regex("/^[a-zA-Z0-9.!#$%&'* /=?^_`{|}~-] @[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/") set wValido to strModel::IsMatch(Lnk-Processo2) But I can not, to do it.Thank youTranslated by Google Eu estou tentando fazer a validação de e-mails assim 01 wValido condition-value. ..... move "mmsis@mmsis.com.br" to Lnk-Processo2 declare strModel as type System.Text.RegularExpressions.Regex = new System.Text.RegularExpressions.Regex("/^[a-zA-Z0-9.!#$%&'* /=?^_`{|}~-] @[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/") set wValido to strModel::IsMatch(Lnk-Processo2) Mas não estou conseguindo, com
Hi, In MF COBOL Unix Environment , we used Call SYSTEM to execute Unix Commands from COBOL program.( Mostly used to move files ) In Visual COBOL on Windows ( Oracle DataBase and Powershell scripts ) , how will i execute above commands by using Call SYSTEM. string 'move ' delimited by size 'D:\\DataFiles\\*' delimited by size 'D:\\OutDataFiles' delimited by size X"00" delimited by size into WS-SHELL-CMD end-string. call 'system' using WS-SHELL-CMD. We will be using Windows command prompt commands to execute instead of Unix commands ? Please advise if there is something incorrect or missing.
[Migrated content. Thread originally posted on 01 June 2012]Is there a way to specify, maybe through an environment variable or something, the entire path to a file so that a SELECT statement can be defined in mainframe style?Like SELECT VIT-IN-FILE ASSIGN TO VITFLIN.instead of SELECT VIT-IN-FILE ASSIGN TO "C:\\Development Projects\\TestFiles\\VITFLIN.dat".
Does anyone know of any restrictions or issues with using Report Writer in managed COBOL? Does anyone have any experience with Report Writer in managed COBOL? We've converted a number of our "batch" COBOL programs to managed code with success, but this is the first one that uses Report Writer and an exception is being thrown at the C# call to COBOL class (within a rununit) that reminds me of Net Express errors I saw YEARS ago when a compiler bug created bad references that wouldn't link. The exception is "Method not found: 'Void COBOLPrograms.WYE39P._MF_IMPLICIT_1()'". We are running VC 2.3.1 for VS 2013 Update 5. COBOLPrograms is the COBOL class library targeting .NET Framework 4.5 with Debug/Any CPU configuration. WYE39P is the converted COBOL program (public) with only the Linkage Section and Procedure Division code residing in the single Method-ID named InstanceMethod. We aren't getting any compile errors. And we haven't run it fr
Hi , I have the following code in cobol program: MOVE 1 TO SP-P-MEMBER-NO EXEC SQL call SP-GET-MEMBER-EMAIL(:SP-P-MEMBER-NO IN , :SP-O-EMAIL-ADDRESS OUT ) END-EXEC. And below is my stored procedure : CREATE OR REPLACE PROCEDURE SP_GET_MEMBER_EMAIL( p_memberNo in NUMBER ,o_emailAddress out VARCHAR2)asbegin select email_addr into o_emailAddress from MEMBER_INFO where member_no = p_memberNo;END SP_GET_MEMBER_EMAIL; When i call the stored procedure from the cobol program , i get the following sql state and sql code SQLSTATE 37000 SQLCODE -0000010000 SQLERRMC Syntax error or access violation. I have configured SQL Directive DBMAN=ODBC The other scenario is where i dont use the Call statement to invoke th stored proc , i use the pro cobol syntax EXEC SQL EXECUTE BEGIN SP_GET_MEMBER_EMAIL (:SP-P-MEMBER-NO ,:SP-O-EMAIL-ADDRESS); END; END-EXEC. In this case system gives error to Add PROCOB directive, when i add it then the Select queries fail. Pl
Hi , In Embedded SQL we could write a Join SQL query and get the desired results from two or more table in one go. But in ADO.Net , we create a dataset for two table and define a relation between them. And get the desired rows by using Parent and Children Relation in the Cursors. So i am writing two querys in case where i could fetch records using One single query. Do we have any other way where i can implement Join query in simpler way in Visual COBOL ADO.Net. Regards, Zoeb
Hi , Like how we can drag and select in putty , I am unable to capture the console screen output ( created using screen section ) using select all from the mouse click. Please advise if any suggestions or alternative to capture the contents of screen in Visual COBOL .Net Environment ( Managed Code). Regards, Zoeb
is there a suggested way of doing Automation testing of Console Based application developed in Visual Cobol .#AutomationTesting#testing
I am working with the debugger and cannot find Debug==>Windows==>Memory==>Memory 1. Is it not available for the personal edition? Or is it a VS problem? Thanks - John
Hi, wenn jemand unter Windows 10 Performance Probleme in Cobol hat, wenn z.B. mehrere Computer auf die gleichen Daten zugreifen, den Windows Defender deaktivieren. bzw. die Dateien von der Prüfung ausschließen. Gruß Sascha
how are the commands to Format a Excel cell with a Frame/Borders for Color and linestyle i want to use this for the Activex MSTGRID.OCX from www.mysofttool.com Is it possible, that in Visual Cobol the Integration of Dialog System is not possible for Screensets with a ActiveX-Object integrated?
I need to clean a webform but I would like to field the field found a routine in C # you can convert to Cobol . Thank you protected void Button1_Click(object sender, EventArgs e) { LimparControles(this.Page.Form.Controls); } public void LimparControles(ControlCollection controles) { foreach (Control controle in controles { if (controle.GetType() == typeof(TextBox)) ((TextBox)controle).Text = string.Empty; } } Translated by Google Eu preciso limpar um webform mas não gostaria de fazer campo a campo encontrei uma rotina em c# é possível converter para Cobol. Obrigado.
Hello,my colleague created a remote copy book project. My Problem is simple: I just can't see any option to import the project.If I try importing it with the normal remote project option it does not find any projects.When i try creating a remote copy book project in the same path Visual Cobol tells me that there is already a project. I am using Visual Cobol 2.2.256 with Eclipse (Native Project). Thanks for your help.
I don't know how to define the ValueConversion attribute in a Cobol class implementing IValueConverter. Can anybody translate the following C# definition. [ValueConversion(typeof(DateTime), typeof(String))] public class DateConverter : IValueConverter Thanks. Werner Lanter
Just digging in to Relativity and finding access via connection string is very good, but access via SQL linked server is slow. Any suggestions? I basically take about 20 files and put all the data on to our Internet box into sql tables (so I do a full insert every 20 minutes into one of two different warehouses to make the SQL files almost "live").I have tried using OpenQuery and also 4 part naming but the times are very sluggish. Starting to learn about query plan - anyone have some past experience to share to help bring me up to speed more quickly? Thanks.#RelativitySpeed
Hi, I am using a batch to compile my Cobol programs to create dll/ exe. I have also created a cobol.dir file for some compiler directives options and kept the 'COBOL.dir' at certain location. In the batch I am providing the statement SET COBDIR ='Location of COBOL.dir' but this statement does not work and I am unable to use the modified COBOL.dir. If I put the COBOL.dir in the current directory where the dll and exe are created it works fine. I cannot put the directory file at current location and I have to use the specified location only. can any of you please help me if I am missing anything? Thanks Anand
I now have VC PE 2.3 on my machine. However, when I go to install it, it gives me 3 errors. 1) Uninstall VC 2.2 2) Uninstall Enterprise Developer and 3) MF License Manager required. I tried to download it but can't get into support. How do you register for support? Thanks
Do we have any sample code for executing Visual Cobol in PowerShell Scripts. Does RTSORA Runtime still be supported when executing scripts via PowerShell#VisualCOBOL
Hi Team , I am using Trail version of Visual cobol for VS2013 and i am unable to find WCF Service Library. Any suggestions what alternatives are there. I wanted to check the WCF implementation of my old proxy programs which were used by the Enterprise Server Web Services .
Problem: In runtime version Server 2.1 Update 1 and earlier, it was possible to perform an independent installation for the Liense Server, by extracing it from the installation file using the -ExtractCab switch. In version 2.2 this switch is no longer available, so how is this performed with version 2.2? Resolution: Attached to this article is an archive called "6644.dark.zip". This utility is part of the WiX toolset, which can be used to create MSI’s and wrapper EXE’s. Decompress the attached zip and run, for example: >dark.exe -x d:\\decomp cs2010_22.exe where: d:\\decomp is the folder where you want the files extracted to. cs2010_22.exe is the "Cobol Server 2.2 for Visual Studio 2010" software executable. Inside d:\\decomp, is an ‘AttachedContainer’ folder which in turn has the various MSI’s and pre-requisite EXE’s. The license server installation softwa
I'm receiving the following error and have everything in place, when I searched the internet for the cause of below, I received (below) Query.CPY (40,21-22) : error COBES0100 : Incorrect SQL statement syntax near: QueryQuery.CPY (44,26-31) : error COBCH0233 : Unknown data description qualifier QueryQuery.CPY (86,26-36) : error COBCH0233 : Unknown data description qualifier Query-NULL COBOL compile: 0 item(s) succeeded or up-to-date, 1 failed. Incorrect SQL statement syntax near: WITH Problem: The following complex query compiles fine in Net Express: EXEC SQL DECLARE cursor0 CURSOR FOR SELECT col1, col2, CASE WHEN ... THEN (SELECT COUNT(*) FROM table1 WHERE ...) ELSE (SELECT COUNT(*) FROM table1 WHERE... &n
When I install IBM DB2 Express-C on Red Hat Enterprise. there is a COBOL samples folder for Micro Focus COBOL. I try to go through each application and try to learn Micro Focus COBOL. Most of them is easy for me to understand what it tries to demonstrate and how it runs. But this one really puzzles me: outsrv.sqb is COBOL DB2 stored procedure. outcli.sqb is COBOL application to call outsrv I compiled both them successfully. and run outcli successfully. But how outcli can call outsrv through DB2 successfully without creating DB2 stored procedure on "outsrv" routine? outcli.sqb source is online https://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.apdv.sample.doc/doc/cobol/s-outcli-sqb.html outsrv.sqb source is online www.ibm.com/.../s-outsrv-sqb.html The README document in the sample folder says -- no need to create DB2 stored procedure for "outsrv" on DB2 server! I do not understand but I ran succe
I have already downloaded Visual Studio Community 2015 and I am now trying to download Visual COBOL PE. The download started but then failed with no error code, Now I don't see how to download it again. Is there a way? - Thanks
Hi, In most of the example i found that Winform is loaded from the main programs and on the events of the Controls ( Like Button) call to COBOL program or the invoking of obj for COBOL class is made. here we can pass the values between the Form and Cobol by using reference in procedure division. Can we call a Winform from the COBOL class or program and how would we pass the values between them ? Below is the code where in i want to load the Cobol Class first and then invoke Winform inside it and then access the values of the Form control from the COBOL Class? Class: class-id CircleWithMessageBox.Main. method-id Main static attribute System.STAThread. local-storage section. 01 mainForm type CircleWithMessageBox.Form1. procedure division. set mainForm to new CircleWithMessageBox.Form1() invoke type System.Windows.Forms.Application::Run(mainForm) goback. end method. end class. Form code: $set sourceformat(free) preservecase ilusing(System.Windows.Forms) class-id CircleWith
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.