Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 -> Mainframe Interview Questions
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    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

priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
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: 7
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: 1592

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us