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

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: 3026
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 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: 6269
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Return to IBM Cobol


  • Related topics
    Last post