View previous topic :: View next topic |
Author |
Message |
vak255 Intermediate

Joined: 10 Sep 2004 Posts: 384 Topics: 79
|
Posted: Mon Apr 23, 2007 10:21 am Post subject: PL1 equivalent term in cobol?? |
|
|
I have to check a field for NULL values on a flat file.
The first program is written in PL1 and they are trapping this using LOW(2)--i doubt whether this will trap the NULL values.
The second program where I have to trap this is written in cobol, I like to know how to trap the NULL values in cobol.
Is NULL is like LOW-VALUES??
Please clarify. |
|
Back to top |
|
 |
vak255 Intermediate

Joined: 10 Sep 2004 Posts: 384 Topics: 79
|
Posted: Mon Apr 23, 2007 10:22 am Post subject: |
|
|
sorry I forgot to mention...
Both programs are not using DB2. They are just reading a flat files. |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Mon Apr 23, 2007 10:36 am Post subject: |
|
|
null is x'00'
LOW(2) returns 2 bytes of nulls i.e. x'0000'
LOW-VALUES, I guess, returns the same as LOW but it has been 10 years since I did COBOL. If I am wrong then someone will put you right. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
vak255 Intermediate

Joined: 10 Sep 2004 Posts: 384 Topics: 79
|
Posted: Mon Apr 23, 2007 10:48 pm Post subject: |
|
|
Thanks Nic. I appreciate. |
|
Back to top |
|
 |
|
|