To Execute this Example

LANSA

To Execute this Example
Access a File with Variable Length FieldThe Things that Make Up this Example

Use process SET_220 and choose the option to “Write 1000 blank records to S220PFL”. This clears the file and writes 1000 records where the value in field S220TXV is blank. Then press Enter and note the size of the physical file.

Use process SET_220 and choose the option to “Write 1000 X filled records to S220PFL”. (This clears the file and writes 1000 records where the value in field S220TXV is X filled (XXXXXXXXXXXXXXXXXX……….). Then press Enter and again note the size of the physical file.

You will notice that the file is much smaller when it contains 1000 blank records than when it contains 1000 X filled records because of the variable length field.