Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Display of COMP-3 Values

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions
Author Message
bhaskar_157

New User


Joined: 27 Dec 2005
Posts: 3

PostPosted: Tue Dec 27, 2005 11:46 am    Post subject: Display of COMP-3 Values
Reply with quote

Hi i have attended the Wipro interview,There asking How we can display the Comp-3 Values using program,
Can you please tel mee whats the answer.

Thanks,
Vijji
Back to top
View user's profile Send private message
References
priyesh.agrawal

Global Moderator


Joined: 28 Mar 2005
Posts: 1509
Location: Chicago, IL

PostPosted: Tue Dec 27, 2005 11:51 am    Post subject: Re: Display of COMP-3 Values
Reply with quote

Move COMP-3 Values to corresponding NORMAL Values. And then DISPLAY that NORMAL Value.

Regards,

Priyesh.
Back to top
View user's profile Send private message
prasad43

New User


Joined: 21 Oct 2005
Posts: 8
Location: blore

PostPosted: Tue Dec 27, 2005 1:31 pm    Post subject:
Reply with quote

hi,
first we declare one variable with same size of comp-3 variable. next we move that com-3 value to the normal variable.now we display that
normal variable
Back to top
View user's profile Send private message
deepamk

New User


Joined: 30 Nov 2005
Posts: 8

PostPosted: Tue Dec 27, 2005 4:27 pm    Post subject: Re: Display of COMP-3 Values
Reply with quote

bhaskar_157 wrote:
Hi i have attended the Wipro interview,There asking How we can display the Comp-3 Values using program,
Can you please tel mee whats the answer.

Thanks,
Vijji


Hi,
May be the interviewer has expected an answer like moving the comp-3 value to an Edited Picture variable.
(Edited Pictures, are PICTURE clauses that format data intended for output to screen or printer.)
Check out this link
http://www.csis.ul.ie/cobol/Course/EditedPics.htm
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1526

PostPosted: Sun Jan 01, 2006 3:51 am    Post subject:
Reply with quote

A pic s9(003) comp-3 variable will display the same way a s9(003) variable will. The interviewer may have wanted to see if you knew that.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions All times are GMT + 6 Hours
Page 1 of 1