View previous topic :: View next topic
|
Author |
Message |
william51 Warnings : 1 New User
Joined: 06 Jul 2006 Posts: 31
|
|
|
|
I saw below statements in source program
MOVE LOW-VALUE TO FIELDA.
INITIALIZE FIELDA.
Why shoud we use 'move low-value' before 'initialize'?why not use 'initialize' directly? |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
There is no reason to use 'MOVE LOW-VALUES'. It's overlayed by 'INITIALIZE'
Dave |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi,
If the field has FILLERs and low vals are desired in those parts of the field, then that's the way to do it. |
|
Back to top |
|
|
william51 Warnings : 1 New User
Joined: 06 Jul 2006 Posts: 31
|
|
|
|
mmwife,
Do you mean that the INITIALIZE statement can't give the FILLERS default value? |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
Jack is absolutely correct, filler fields are unaffected by ?INITIALIZE?
Dave |
|
Back to top |
|
|
cobolunni
Active User
Joined: 07 Aug 2006 Posts: 127 Location: kerala,india
|
|
|
|
so what is the reason to add initialize after moving low value .The first statment itself can do the initialization so what is the need of second |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
A low-vals MOVE fills the entire field w/binary zeros. The INIT will overlay the low-vals with appropriately formatted values for named non-FILLER sub fields. Eg. COMP-3, PIC X, PIC 9 DISPLAY, etc. |
|
Back to top |
|
|
|