Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Comp-3 Value '1234' Moved to Compx(5),What will Happen?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
haidude

New User


Joined: 11 May 2007
Posts: 10
Location: Mumbai

PostPosted: Wed Jun 20, 2007 12:05 pm    Post subject: Comp-3 Value '1234' Moved to Compx(5),What will Happen?
Reply with quote

I have a comp-3 value '1234',now this value is moved to Comp varialble,what will happen?
Back to top
View user's profile Send private message

Raphael Bacay

New User


Joined: 04 May 2007
Posts: 58
Location: Manila, Philippines

PostPosted: Wed Jun 20, 2007 12:08 pm    Post subject:
Reply with quote

The comp variable will still contain 1234 except in binary format.
Back to top
View user's profile Send private message
haidude

New User


Joined: 11 May 2007
Posts: 10
Location: Mumbai

PostPosted: Wed Jun 20, 2007 12:19 pm    Post subject:
Reply with quote

How we can see the the Comp values,it is possible thru Disply staatement?How the value 1234 is looks in Comp?
Back to top
View user's profile Send private message
Raphael Bacay

New User


Joined: 04 May 2007
Posts: 58
Location: Manila, Philippines

PostPosted: Wed Jun 20, 2007 12:31 pm    Post subject:
Reply with quote

I think you have to move it to a usage is display number like pic 999
or an editting format like bbbb99999.999.

If you display it as it is you will probably get garbage.
Back to top
View user's profile Send private message
Santoshdorge

New User


Joined: 27 Jun 2006
Posts: 48
Location: Pune

PostPosted: Wed Jun 20, 2007 2:08 pm    Post subject: Re: Comp-3 Value '1234' Moved to Compx(5),What will Happen?
Reply with quote

Hi
In the vs cobol II it allows u to display comp values also
Check it out


Thanks,
Santosh
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jun 20, 2007 7:26 pm    Post subject:
Reply with quote

Hello,

Yes, you can directly display the comp field.

If you search in this forum, you will find a topic where many formats are discussed and the results when they are displayed.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Need help to populate date in COMP-3 ... chetanambi DFSORT/ICETOOL 3 Tue Jun 21, 2016 12:25 pm
No new posts comparing comp-3 and unpacked numbers juares castro COBOL Programming 3 Mon May 30, 2016 6:46 pm
No new posts New PROC not reflecting in prod even ... Musab Ahmed CA Products 9 Tue Mar 15, 2016 12:45 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us