Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Prodentim Probiotics Specially Designed For The Health Of Your Teeth And Gums

Instant Grammar Checker - Correct all grammar errors and enhance your writing

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

31,037 questions

40,788 answers

573 users

How to define a storage with different data description in COBOL

1 Answer

0 votes
IDENTIFICATION DIVISION.
PROGRAM-ID. COBOL-PRO.

DATA DIVISION.
   WORKING-STORAGE SECTION.
   01 A-A.
   02 A-NUM1 VALUE '19873902'.
   02 A-NUM2 REDEFINES A-NUM1 PIC 9(8).

PROCEDURE DIVISION.
   DISPLAY "A-NUM1 : "A-NUM1.
   DISPLAY "A-NUM2 : "A-NUM2.

STOP RUN.


# run:
#
# A-NUM1 : 19873902
# A-NUM2 : 19873902

 





answered Sep 18, 2020 by avibootz

Related questions

1 answer 117 views
117 views asked Sep 17, 2020 by avibootz
1 answer 129 views
129 views asked Sep 17, 2020 by avibootz
1 answer 115 views
115 views asked Sep 17, 2020 by avibootz
...