View previous topic :: View next topic
|
Author |
Message |
anandinmainframe
Active User
Joined: 31 May 2007 Posts: 171 Location: India
|
|
|
|
Hi all,
i want to move null value to an output where the output field is defined as a binary which is decalred as follows
I4-AMT PIC S9(9) USAGE COMP. |
|
Back to top |
|
|
Santoshdorge
New User
Joined: 27 Jun 2006 Posts: 48 Location: Pune
|
|
|
|
I guess you want to do this in your cobol DB2 program.
This can be done by moving -1 to null indicator field.
Thanks,
Santosh. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
There is no "null value", so it cannot be moved.
You could move zeros to the field and the content would be all 0s, but that is not null. |
|
Back to top |
|
|
anandinmainframe
Active User
Joined: 31 May 2007 Posts: 171 Location: India
|
|
|
|
Hi,
Thank you all for your support
i did the same told by dick. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good to hear you have a solution - thanks for letting us know
d |
|
Back to top |
|
|
|