Operating System - OpenVMS
1753882 Members
7328 Online
108809 Solutions
New Discussion юеВ

Re: Number of records in a file

 
WW304289
Frequent Advisor

Re: Number of records in a file

John,

thanks for the explanation and all the history. I forgot about DECC$DEFAULT_LRL logical. I should've known better: it was the first "CRTL feature logical" ever introduced. How many do we have now? :-)

> The CRTL writes "native" C files directly, without going through RMS.

Yes, when processing files in block mode, the CRTL uses sys$write service.

> Of course, the correct fix is for the CRTL to keep track of the real LRL and set an accurate value. I'm not sure why the CRTL engineers never thought of that ;-)

I don't know. I don't recall this ever discussed, perhaps, was not perceived as a high priority issue. It does look like it would not be too difficult to fix.

Thanks again,
-Boris
Mark Battle
Advisor

Re: Number of records in a file

Just what I wanted. f$file (filespec, "file_length_hint") lets me check for text files with linefeeds instead of carriage returns. There is only one record.

Many thanks, Mark
WW304289
Frequent Advisor

Re: Number of records in a file

Thanks for all the replies.