View previous topic :: View next topic
|
Author |
Message |
Vidya Bhama
New User
Joined: 17 Sep 2008 Posts: 41 Location: Chennai
|
|
|
|
I have two inputs both going to the same destination ouput field.
05 in1 PIC ZZ.ZZZ
05 in2 PIC x(6)
05 out PIC X(10)
Move in1 to out does not work and gives me compilation error.
How can I achieve this.
thnks for the help. |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
you can't acheive it as such
Try
Code: |
05 in1 PIC S9(2)V9(3) |
But Beware that you can't do arithmetic operation with OUT variable. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Code: |
05 IN1 PIC ZZ.ZZZ.
05 IN1-R REDEFINES IN1
PIC X(06).
.
.
.
MOVE IN1-R TO OUT. |
|
|
Back to top |
|
|
|