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?
kunal3963
 
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.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
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

Hello,

Read here:
http://publibz.boulder.ibm.com/cgi-bin/ ... 0/5.3.17.1

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,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post