IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Display of COMP-3 Values


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bhaskar_157

New User


Joined: 27 Dec 2005
Posts: 3

PostPosted: Tue Dec 27, 2005 11:46 am
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
priyesh.agrawal

Senior Member


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

PostPosted: Tue Dec 27, 2005 11:51 am
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: 7
Location: blore

PostPosted: Tue Dec 27, 2005 1:31 pm
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
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
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: 1592

PostPosted: Sun Jan 01, 2006 3:51 am
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
Search our Forums:

Back to Top