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
 

 

Can we 'MOVE' simple decimal to packed decimal?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Can we 'MOVE' simple decimal to packed decimal?
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: 3158
Location: Tucson AZ

PostPosted: Wed Jan 24, 2007 4:48 pm    Post subject: Re: Can we 'MOVE' simple decimal to packed decimal?
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    Post subject: Thanks a lot
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    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 Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:21 pm


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