|
I'm having trouble understanding why a subfield of a data structure does not have the length designation (it crashes when I test with "when %len(datastructure(x).subfield) = 0;" ).
I get the RNX0115 Length of varying length variable is out of range. It clearly is out of range, because the value of the subfield is set to all blanks, and the length bytes show x'4040'.
My question is why the subfield is initiated to all blanks, including the length bytes, instead of to all x'00', like any other respectable varying length field should have?
Looks like testing for an "empty" varying subfield will need to be "if datastucture(x).subfield = *blanks" instead of testing its length. Let me know if there's a better alternative.
As an Amazon Associate we earn from qualifying purchases.
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.