Is it possible to move COMP value to COMP 3?



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

Is it possible to move COMP value to COMP 3?

Postby ramesh4mainframes » Thu Aug 12, 2010 9:56 am

HI,

My doubt is, Is it possible to move one COMP variable to another COMP like COMP 2 or COMP 3. Both will store in different formats. So is it possible or not?
Thanks,
RamS
ramesh4mainframes
 
Posts: 32
Joined: Mon Jun 07, 2010 3:58 pm
Location: Hyderabad
Has thanked: 0 time
Been thanked: 0 time

Re: Is it possible to move COMP value to COMP 3?

Postby dick scherrer » Thu Aug 12, 2010 10:02 am

Hello,

Why would it not be possible?

Suggest you spend some time in the COBOL manual and learn about moving elementary fields.
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

Re: Is it possible to move COMP value to COMP 3?

Postby Phrzby Phil » Wed Sep 22, 2010 6:51 pm

A simple series of tests would be most instructive. Experiment.
Phrzby Phil
 
Posts: 7
Joined: Wed Jun 30, 2010 8:02 am
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post