I have a program that needs to output a file with variable length fields and fixed length records. Also, the fields need to be delimited by a hex character.
It looks to me like this isn't a true variable length field we're dealing with. So, in that case, simply define a DDS file with a single field in it, and concatenate the hex character as you go along.
For example (using hex 'FF' as the delimiter):
Record = Field1;
Record = %trim(record) + x'FF' + Field2;
...
Record = %trim(record) + x'FF' + Fieldx;
Write RecName;
In V5R3, the maximum length of a string (and, therefore, your record) is 65535 bytes.
-- Francis I'd like to change the world, but I can't find the source code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.