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

Can we move a value of 9(4)v99 COMP to 9(4).99


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

New User


Joined: 18 Mar 2005
Posts: 3

PostPosted: Thu Mar 31, 2005 4:19 pm
Reply with quote

Can we move a value of 9(4)v99 COMP to 9(4).99.

If not please let me know why.
Back to top
View user's profile Send private message
rsshanmugam

New User


Joined: 08 Mar 2005
Posts: 62
Location: Basildon

PostPosted: Thu Mar 31, 2005 6:59 pm
Reply with quote

no we cant move comp field to numeric edited pic clause variable
Back to top
View user's profile Send private message
Great Indian

New User


Joined: 05 Apr 2005
Posts: 9

PostPosted: Thu Apr 07, 2005 5:04 pm
Reply with quote

Hello Jyothula,
What rsshanmugam told is wrong....i totally disagree with him.
We can move a value of 9(4)v99 COMP to 9(4).99.
Back to top
View user's profile Send private message
rsshanmugam

New User


Joined: 08 Mar 2005
Posts: 62
Location: Basildon

PostPosted: Fri Apr 08, 2005 7:26 pm
Reply with quote

No i have checked many times we cant move comp field to edit pic clause variable.
Back to top
View user's profile Send private message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Fri Apr 08, 2005 7:59 pm
Reply with quote

Hi rsshanmugam and soperk
Better give some reference as a proof of your statements.B'coz it create confusion.

Thanks
Back to top
View user's profile Send private message
sribks2005

New User


Joined: 04 Apr 2005
Posts: 20
Location: Mysore

PostPosted: Tue Apr 12, 2005 6:19 pm
Reply with quote

hi,

We can move 9(4)v99 comp value to 9(4).99. It is valid operation.
I have tried it, and that went fine.

The reason might be that,
"the difference between 9(4)v99 comp and other normal numeric data items is with respect to only internal data representation. 9(4)v99 comp data item is also a numeric data item. So , we can move this to edit pic data items as we do for normal numeric data items."

If it is wrong, correct me and make sure of correct answer for this.

thank you
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Apr 15, 2005 3:29 am
Reply with quote

The answer is YES, YES, YES, you can move a valid numeric item to a numeric edit field! Try it, you'll like it.
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 COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Interviewers are surprised with my an... Mainframe Interview Questions 6
No new posts How to move DB2 Installation HLQ DB2 4
Search our Forums:

Back to Top