View previous topic :: View next topic
|
Author |
Message |
linc
New User
Joined: 25 Aug 2008 Posts: 25 Location: china
|
|
|
|
Hi guys:
I have one easy question.
Code: |
01 w-rec.
05 W-REC-1 PIC S99V9 USAGE COMP-3.
05 FILLER PIC X(03).
01 W-OUT.
05 W-OUT-1 PIC -ZZ.9.
05 FILLER PIC X(03). |
How many bytes does S99V9 and -ZZ.9 occupy?
Can I move w-rec to w-out directly?
Thanks. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
This is basically the same thing you asked about here:
ibmmainframes.com/viewtopic.php?p=154673&highlight=#154673
Quote: |
Can I move w-rec to w-out directly? |
The compiler will allow the move. It will not do the move that you want (similar to the display that did not do what you wanted in the linked topic).
Quote: |
How many bytes does S99V9 and -ZZ.9 occupy? |
I suspect you really mean s99v9 comp-3 The first should take 2 bytes (if comp-3) and the second 5 bytes. If you run a compile, you will see the lengths in the compile output. |
|
Back to top |
|
|
linc
New User
Joined: 25 Aug 2008 Posts: 25 Location: china
|
|
|
|
thanks.It's very useful. |
|
Back to top |
|
|
|