Skip to main content
3 votes
1 answer
93 views

How to set the size of the COMMAREA in a Cobol program for Kicks under VM/370CE?

I'm working on a Cobol program for Kicks under VM/370CE V1R1.2. I followed the Youtube tutorial from Moshix and Rene Ferland and it works well, but now I want my programs to communicate with each ...
Zug's user avatar
  • 183
1 vote
2 answers
70 views

syntax error messages "not terminated" and "unexpected END-IF"

I'm having a constant issue with the UPDATE-PRODUCT portion. I'm getting an error at Line 103: PERFORM statement not terminated by END-PERFORM and at Line 117: syntax error, unexpected END-IF. ...
Gabriel Tran's user avatar
1 vote
2 answers
78 views

Recursive Pascal Triangle Entry Calculator

I was trying to do a Pascal's triangle entry calculator in COBOL. I wanted to try to use a recursive function. I am a beginner so I looked online for how one may implement this kind of function in ...
Francesco Raso Stoia's user avatar
0 votes
0 answers
26 views

Format faliure merging word template with *.csv file data

I get a format faliure pop up, when trying to merge a *.csv file datasource with a word template in a Cobol program. The faliure arises in following line of code: MODIFY someHandleNumber ...
Roar Pedersen's user avatar
0 votes
2 answers
60 views

GnuCobol file not found

I am looking for a solution for the following problem. I run a very simple cobol program to read a file. I use the following code : IDENTIFICATION DIVISION. PROGRAM-ID. GADGETS. ...
Jamal Ait Lhassan's user avatar
0 votes
1 answer
40 views

How to correctly place the space at 0101 position

Im using cobol 85 to create a program which inputs number of 10 digits, and if user types "END" the program ends. But i cant seem to clear the screen using DISPLAY AT "position". ...
Gerelmaa Sergelen's user avatar
1 vote
1 answer
47 views

Moving LENGTH OF to a COMP field fails parse

I receive a PARSE ERROR on the MOVE statement below indicated by the comment. I have tried a variety of changes, but I cannot discern what is wrong. I am new to COBOL. Sorry for the horrible ...
Andy's user avatar
  • 99
0 votes
3 answers
72 views

INITIALIZE PACKED-DECIMAL field on DB2 Query

I'm using a PACKED-DECIMAL field COMP-3 on the WHERE clause on a DB2 QUERY. When i initialize the zone and i want to display it: It shows: 0404040404 ==> It means that the field contains LOW-VALUE ...
Ahmed SEDDIK's user avatar
0 votes
0 answers
69 views

COBOL program has a faulty check

I have the following COBOL program: At the end, I ask the user if the results are "Good Enough." However, no matter what I type, it always says: "Cool, glad you like it!" Even when ...
SkyeBoniwell's user avatar
  • 7,002
0 votes
2 answers
114 views

ROUNDED statement in COBOL

I need to write a code to round the 4 decimal data to 2 decimal data. VAR-A PIC S9(15)V9(4) VALUE 1111.1294 VAR-B PIC S9(15)V99 VALUE ZERO. when i MOVE VAR-A to VAR-B the expected value is 1111.13 ...
Prakash's user avatar
0 votes
3 answers
158 views

gnucobol failing to open/create an indexed file

Following a course in COBOL, I'm trying to create an indexed file. Many times the file reading chapter precedes the writing one, so I had no file to read, and an indexed file is not just a file. ...
alex's user avatar
  • 887
0 votes
1 answer
195 views

SORT to merge two files and append data without changing lrecl

I have two files with the same layout and LRECL FIELD NAME FIELD LENGTH STORE-CUSTOM-ID X(08) STORE-GROUP X(25) STORE-LIST 9(04) OCCURS 500 TIMES I want to Merge these ...
Aarthi M's user avatar
0 votes
0 answers
47 views

HP NonStop NOWAIT I-O

Is it possible to write a NOWAIT I-O in HP NonStop COBOL? I have a task to write a program to generate three "reports" [CSV files to be downloaded to a desktop for use in EXCEL]. I think I ...
user62742's user avatar
1 vote
2 answers
116 views

Error compiling COBOL program with sequential files

I have this COBOL program in my mainframe: IDENTIFICATION DIVISION. PROGRAM-ID. TEST2. ...
Juan's user avatar
  • 23
0 votes
2 answers
123 views

Invalid memory address error in my COBOL application

I wrote this COBOL application to perform a prime factorization, it is not yet completed. When I run the code, I get this error/output: Programm zur Darstellung der Primfaktorzerlegung mit einer ...
Luka's user avatar
  • 25

15 30 50 per page
1
2 3 4 5
118