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

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,872 questions

51,796 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 98 views
1 answer 281 views
281 views asked Sep 17, 2020 by avibootz
1 answer 262 views
262 views asked Sep 17, 2020 by avibootz
1 answer 68 views
...