View previous topic :: View next topic
|
Author |
Message |
Gursharan Khalsa
New User
Joined: 04 Sep 2007 Posts: 33 Location: Salinas
|
|
|
|
i want to move numeric field to an alphanumeric fiedl, but i should be right-justified.can anyone help
i want to move -(9).99 to x(11) but right justified.
its urgent. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
i want to move -(9).99 to x(11) but right justified |
You have almost answered your own question. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
What does the COBOL Language Reference manual tell you? |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Gursharan Khalsa,
You're not going to trick me again! The receiving field s/b 12 bytes to avoid losing the low order digit of the sending field.
The sending field s/b already in "right just" format, so a simple move should do it. |
|
Back to top |
|
|
|