Data storage fields in cobol

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Data storage fields in cobol

Postby kunal3963 » Thu Nov 11, 2010 4:18 pm

Can any one tell me memory layout of data storage fields like packed decimal,binary,comp,comp-1,comp-2,comp-3 with example?
Posts: 3
Joined: Thu Nov 11, 2010 3:36 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Data storage fields in cobol


Re: Data storage fields in cobol

Postby NicC » Thu Nov 11, 2010 4:49 pm

Try reading the manuals - both the Language Reference and the User Guide. Then write a little program that will create a record containing all the data types and then browse that record in ISPF. Hint: use HEX ON command when in browse/view/edit.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Global moderator
Posts: 2511
Joined: Sun Jul 04, 2010 12:13 am
Location: Down on the pig farm
Has thanked: 4 times
Been thanked: 86 times

Re: Data storage fields in cobol

Postby dick scherrer » Fri Nov 12, 2010 1:14 am


Read here: ... 0/

and bookmark this manual as you will use it often. . .

If you find something n the documentation that is not clear, post whatyou found and your doubt.

Someone will be able to clarify.
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6308
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 90 times

Return to IBM Cobol


  • Related topics
    Last post