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

Can we 'MOVE' simple decimal to packed decimal?


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

New User


Joined: 22 Jan 2007
Posts: 3
Location: Mumbai

PostPosted: Wed Jan 24, 2007 4:38 pm
Reply with quote

Can we pass a simple decimal value to a packed decimal format with the help of MOVE statement?

Can we move CHAR to decimal with the help of MOVE? If not whats the process to move it?

Thanks,
regards,
Avadhoot
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Jan 24, 2007 4:48 pm
Reply with quote

avadhoot wrote:
Can we pass a simple decimal value to a packed decimal format with the help of MOVE statement?

Can we move CHAR to decimal with the help of MOVE? If not whats the process to move it?
Yes, quoting the Fine Manual:
Quote:
An elementary move is one in which the receiving item is an elementary item, and the sending item is an elementary item or a literal. Any necessary conversion of data from one form of internal representation to another takes place during the move, along with any specified editing in, or de-editing implied by, the receiving item.
Back to top
View user's profile Send private message
avadhoot

New User


Joined: 22 Jan 2007
Posts: 3
Location: Mumbai

PostPosted: Wed Jan 24, 2007 4:54 pm
Reply with quote

Thanks a lot for a quick reply,

Needed a YES/NO kind of anwer so that I can go ahead with coding...

Thank you again,

Avadhoot Jathar
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Need Help with Packed Decimal Signs DFSORT/ICETOOL 4
Search our Forums:

Back to Top