The REDEFINES clause is used to store more than one data items in the same storage area.
Syntax: level-number Data-name1 REDEFINES Data-name-2
data-name-1 is the redefining item or the REDEFINES su...
gauravaram
Dec 6th, 2018
redefines class is something you can use the existing memory location for your new variable using the redefines caluse
01 emp-data pic x(100)
05 emp-name pic x (40)
05 emp-no pic x(20)
05 fi...
INITIALIZE is basically used to initialize or set the initial value of variables that we use in a COBOL program. For numeric variables (PIC (9) ), the value of the variable will be initialized to zero...
Without compiling the program, is it possible to find whether it doesnt have errors? If Yes,
Could you please let me know what is the procedure you are following to find the errors?
krishna
Oct 11th, 2011
Compilation converts the source code in to object code but the object code is not executable in mainframe environment so we need to link-edit it by using iewl............compilation is must for the programs to execute...............
When we code we make sure that variables are defined in such a manner to handle every condition. Though return codes are numeric,we generally use alphanumeric variables to store it as alphanumeric var...
RETURN-CODE is a 2 byte binary field. Hence, it can very much be defined as a numeric field also. It is defined as alpha numeric field, i.e., PIC X(02) because it occupies 2 bytes and COBOL converts n...