× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: RPG - conversion vs re-write
  • From: John Carr <74711.77@xxxxxxxxxxxxxx>
  • Date: Thu, 11 Sep 1997 22:26:30 -0400



RE:     RE: RPG - conversion vs re-write
>>John,
>> You said:
>>> If a field is flagged as "NULL" what value would my RPG program actually
>>> see in it?
>>> If alpha?  If binary? If numeric?  if Date?

>Bob said.
>>Well, I once had a dog and his name was BINGO!
>>
>>The value of the date field, even when the null indicator is *ON, is what 
>>ever value was in there before. If you don't code for the null indicator in 
>>your program, it runs just like always.
>>Bob Cozzi

>Bob & John
>I think for alpha you get blanks, numeric you get 0. At least, I think I
>read that in ILE RPG manual.
>Don't know binary, though.
>Vernon Hamberg

To the other person who said "I'd like to see the value be *LOVAL or 
something"  I don't think that the same value in all data types would
accomplish it.  Lets say the value for Null was X'00'  how would that 
look in a Binary field?  I don't think it would "Special" I think it 
would be seen as just a normal Zero value, Right?   
I mean in a Zoned Decimal or a Alpha field it would stand out like a 
sore thumb on a DSPPFM  etc.  But the binary wouldn't look abnormal.
I think it's an attribute of a field myself. 
Maybe I'm wrong on this though.
John Carr
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MAJORDOMO@midrange.com
|    and specify 'unsubscribe MIDRANGE-L' in the body of your message.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.