How to check for NULL in alphanumeric field?



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

How to check for NULL in alphanumeric field?

Postby Ramanan-R » Thu Dec 22, 2011 12:29 pm

Hello All,

In PGM1, I'm doing a Left Outer Join between two tables and the result set returns one of the field which is PIC X(10) as X'60606060606060606060' (Got this using HEX ON command in SPUFI for unmatched rows) which is a NOT NULL field as it is a part of Key field....

The requirement is to write them as is to a flat file in PGM1, which is used as i/p by another program, PGM2

Now in PGM2, i need to check that alphanumeric field for NULL or X'60606060606060606060' to do further processing...

Please advice...

Thanks!
Ramanan R
Ramanan-R
 
Posts: 4
Joined: Tue Jul 12, 2011 2:42 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to check for NULL in alphanumeric field?

 

Re: How to check for NULL in alphanumeric field?

Postby BillyBoyo » Thu Dec 22, 2011 1:48 pm

Please don't ask the question in multiple fora/ums. It will only get you a roasting and a loss of interest in your question.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post