Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
15
Task/Memory-allocation/COBOL/memory-allocation.cob
Normal file
15
Task/Memory-allocation/COBOL/memory-allocation.cob
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
PROGRAM-ID. memory-allocation.
|
||||
|
||||
DATA DIVISION.
|
||||
WORKING-STORAGE SECTION.
|
||||
01 based-data PIC X(20) VALUE "Hello, World!"
|
||||
BASED.
|
||||
|
||||
PROCEDURE DIVISION.
|
||||
*> INITIALIZED sets the data item to the VALUE.
|
||||
ALLOCATE based-data INITIALIZED
|
||||
DISPLAY based-data
|
||||
FREE based-data
|
||||
|
||||
GOBACK
|
||||
.
|
||||
Loading…
Add table
Add a link
Reference in a new issue