Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How is local storage similar to working storage in cobol?


Asked by Yaretzi Villalobos on Dec 07, 2021 FAQ



Local-Storage section is similar to Working-Storage section. The only difference is that the variables will be allocated and initialized every time a program starts execution. Linkage section is used to describe the data names that are received from an external program. IDENTIFICATION DIVISION. PROGRAM-ID. HELLO. ENVIRONMENT DIVISION.
Subsequently,
Local storage section is a section of Data Division of Cobol which is similar to the Working storage section. The only difference being that the variables in the Local Storage always get initialised when the program is initiated.
Keeping this in consideration, Local-Storage section is similar to Working-Storage section. The only difference is that the variables will be allocated and initialized every time a program starts execution. Linkage section is used to describe the data names that are received from an external program.
Consequently,
The procedure division is the main section of the COBOL program. Like the main () function of C/C++ program. From the procedure, division section program will actually start the execution. This section is the logical section of the program.
Just so,
In order to execute a COBOL program in batch mode using JCL, the program needs to be compiled, and a load module is created with all the sub-programs. The JCL uses the load module and not the actual program at the time of execution. The load libraries are concatenated and given to the JCL at the time of execution using JCLLIB or STEPLIB.