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

Convert comp to display


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Logeshwari.Bai

New User


Joined: 18 Oct 2013
Posts: 2
Location: india

PostPosted: Wed Jun 04, 2014 5:10 pm
Reply with quote

Hi,

My requirement is converting the comp variable to a display variable and then update into a table.

Thanks in advance.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Jun 04, 2014 5:38 pm
Reply with quote

This is a simple COBOL MOVE statement, unless for some reason, you need to preserve the COMP value as-is.

For example -

If the COMP value in a fullword were X'00000040' (decimal 64), do you need to preserve this, so that the target field were C'00000040', as an 8-Byte Display value?

Enquiring minds want to know....
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jun 05, 2014 4:41 pm
Reply with quote

what is the datatype of the table column that you are updating?
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
Search our Forums:

Back to Top