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
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
This topic is locked: you cannot edit posts or make replies. Alphanumeric to Numeric move on UNIX mistah kurtz COBOL Programming 16 Wed Jul 27, 2016 8:47 pm
No new posts Need information on COBOL MOVE CORRES... subratarec COBOL Programming 10 Tue Jun 28, 2016 10:38 pm


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