IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Moving Null value


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Thu Jun 19, 2008 12:28 pm
Reply with quote

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
View user's profile Send private message
Santoshdorge

New User


Joined: 27 Jun 2006
Posts: 48
Location: Pune

PostPosted: Thu Jun 19, 2008 12:36 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jun 19, 2008 12:37 pm
Reply with quote

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
View user's profile Send private message
anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Thu Jun 19, 2008 6:16 pm
Reply with quote

Hi,
Thank you all for your support
i did the same told by dick.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jun 19, 2008 8:06 pm
Reply with quote

Good to hear you have a solution - thanks for letting us know icon_smile.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
No new posts Uploading from desktop, a CSV file, s... DB2 2
No new posts How to handle NULL in COBOL program COBOL Programming 8
Search our Forums:

Back to Top