Top "Cobol" questions

language for business applications.

In Cobol, to test "null or empty" we use "NOT = SPACE [ AND/OR ] LOW-VALUE" ? Which is it?

I am now working in mainframe, in some modules, to test Not null or Empty we see : NOT = SPACE OR …

cobol
how to format a number to S9(5)V99 ascii in .net

I've been searching for s9(5)v99 but got different information and not really clear. Could someone shows how or the …

.net cobol number-formatting
COBOL Data types

I have confusion regarding COBOL data types. Like in many interviews it is asked to explain the difference between COMP-3 …

cobol
compute rounded in cobol

I am confused with the rounded in the compute function in cobol. Declaration: VAR-A PIC S9(9)V99 COMP-3. VAR-B PIC …

cobol
Concatenate string by its length COBOL

Need to concatenate 4 strings to a destination variable in cobol. Like, 01 WS-S1 X(10) VALUE "HI ". 01 WS-S2 X(10) VALUE "HOW ". 01 WS-S3 …

cobol
Issues with ANDs and ORs (COBOL)

I can't seem to get this one part right. I was given a input file with a bunch of names, …

cobol logical-operators
"COPY" statement with "REPLACING" in COBOL

I am getting compilation error as, A "COPY" statement with "REPLACING" phrase was found within a nested "COPY". This is …

cobol mainframe
Problem with COBOL move to comp-3 variable

I'm having the following problem in a COBOL program running on OpenVMS. I have the following variable declaration: 01 STRUCT-1. 02 FIELD-A …

cobol
Interpreting COMP-3 Packed Decimal Fields into numeric values

I am creating an SSIS package to read in unpacked data from a series of copybook files. I am unsure …

ssis cobol comp-3
Converting EBCDIC to ASCII in java

I am supposed to convert an EBCDIC file to ASCII by using Java. So far I have this code: public …

java ascii inputstream cobol ebcdic