REad Error
Richard Kreiss
rkreiss at gccconsulting.net
Mon Dec 7 13:01:39 PST 2020
I solved the issue I was having with read(aa,ab). Once is defined ab in processing the error received disappeared.
Nowhere in the documentation does it indicate that the field used to hold the value of the read should be defined either in the current processing table or in auto processing.
One that filed is defined (it needs a length and edit) the processing will run. If only entered as ab with no (size and edit) the processing table will pass a syntax check and run. However, ab will not have any value based on the cc=read(aa,ab). Only after it is fully defined will ab hold the value of the read.
I suggest that another field be defined either as a dummy filed or a long variable with no size associated with it and the setting that field=ab{"", then use readlen=len(field) to get the actual size of ab as len(ab) will always be the length a defined not the length of the data read in.
Declare Readlen will allow for knowing what the field is used for in the future either by you or someone else.
Richard Kreiss
GCC Consulting
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 13695 bytes
Desc: not available
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20201207/4533c93b/attachment.bin>
More information about the Filepro-list
mailing list