Questions tagged [cobol.net]

COBOL implementations for the .NET Framework.

Various commercial vendors such as Micro Focus and Fujitsu provide COBOL implementations that target the COBOL platform.

Micro Focus provides multiple versions:

Fujitsu also provides multiple versions:

Note: See also the related tag for the Fujitsu COBOL runtime and compiler suite. However, not all versions of NetCOBOL are .NET based.

17 questions
4
votes
2 answers

What does Cobol file status 9Â mean?

My issue is when I try to open on input a huge file (6GB) , there's a message that says: cobol file status code 9Â I compiled the program and it has no errors, but when I try to run it, I use a small one (3 GB for example) my program work…
4
votes
2 answers

Splitting digits from a packed-decimal field

I have a 7-digit packed-decimal field on my file. How can I define data items that would extract/separate these 7 digits? For example I want to have the first two digits in one data item and the other digits in another, so I can manipulate them…
Murad
  • 41
  • 2
2
votes
3 answers

How to call CICS programs from C#

We currently call CICS Main frame programs via Cobol.net using the CICS universal client. We are wondering if it is possible to call them directly from C#?
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
2
votes
1 answer

ASP.NET server-side scripting in Visual COBOL

In analogy with C# server scripting for ASP.NET: <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
Mishax
  • 4,442
  • 5
  • 39
  • 63
2
votes
2 answers

I'm having trouble with tables using Cobol

IDENTIFICATION DIVISION. PROGRAM-ID. MP4-5. ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 SEAT-DESCRIPTION. 03 FILLER PIC X(50) VALUE "01 DRIVER". 03 FILLER PIC X(50) VALUE "02 DRIVER'S ASST". 03 FILLER PIC…
2
votes
1 answer

Autogenerated sequence diagrams

In Ndepend we can get very good dependency diagrams showing which methods are called. What we have not been able to do is to see in which order the methods are called. For example a method A calls method X and method Y. Then we want to see in the…
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
2
votes
2 answers

Static code analysis - Dependence map of Cobol.Net program

We have some Microfocus Cobol.Net applications. We would like to create a dependency map similar to what is available in NDepend. Does anyone know of a tool that is able to do this?
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
1
vote
0 answers

Will indentation of sql queries in Visual COBOL cause issue?

I am not familiar with COBOL programming language. But as per the requirement I have to work on a COBOL application. I am facing below issue with one SQL query in the application. Post execution of below code snippet variable var_b should be…
Parashuram
  • 303
  • 2
  • 6
  • 19
1
vote
1 answer

First calculated records in record-line/output-line becomes BLANK in output in COBOL

My calculations are correct. But the output file's ONLY first calculated record becomes as BLANK and affects all the records. In the output file [A5-SalaryReport-5A.out], you may see the first record's position comes BLANK. THIS IS MY INPUT FILE…
Nirmal
  • 57
  • 1
  • 8
1
vote
0 answers

Visual Cobol 2012 and Nuget

I'm developing a DLL using Visual Cobol 2.2, and I want to make it a NuGet package so that other people in my shop can leverage it. In my VC project, the first time I tried to do this, I right-clicked on References and clicked on "Manage NuGet…
TheMikeTones
  • 11
  • 1
  • 2
1
vote
2 answers

I think there is something wrong with my computation part in my code, I cant get a decimal output for my currency converter

IDENTIFICATION DIVISION. PROGRAM-ID. MP2. ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 AMOUNT PIC 9(4)V9(4). 01 AMTDIV PIC 99V9(4). 01 CURR PIC X(3). 88 PHP VALUE "PHP" "php". 88 USA…
0
votes
1 answer

Mock testing of cobol.net code accessing Main Frame systems

I am looking for a way to optimise the unit tests. The system is written in cobol.net and accesses a Main Frame using CICS universal client. Is there a way to mock the call to the Main Frame?
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
0
votes
2 answers

WPF DataTriggers on ContentControls are firing after their bound Dependency Property's PropertyChangedCallback

I'm coding a WPF input dialog window, that will show a different Control based on a dependency property named InputType. The language I'm using is Visual COBOL .NET, but the issue is not related to the language but to WPF itself, and the language is…
Sasino
  • 134
  • 2
  • 11
0
votes
1 answer

Compiler Thinks Im Refering to Nonexistent Paragraph or Section

I am getting errors concerning my procedure division in one of my assignments for class. It is a COBOL Program that is supposed to keep a running total of the average height and weight of applicants, number of brown-eyed applicants, number of male…
0
votes
1 answer

What is the syntax for invoking a function with named parameters in Visual Cobol?

How do I use named parameters when INVOKEing a function? In this case I am calling a c# static method, i.e. INVOKE TYPE ClassName::FunctionName(PARAMETER-VALUE-1, PARAMETER-VALUE-2)
horns
  • 1,843
  • 1
  • 19
  • 26
1
2