[Info-vax] Example of random access by record number on an RMS fixed record size, relative organization file?

Arne Vajhøj arne at vajhoej.dk
Fri Sep 22 08:28:32 EDT 2023


On 9/22/2023 7:08 AM, Dave Froble wrote:
> On 9/21/2023 9:12 PM, Arne Vajhøj wrote:
>> BTW, my basic code has a difference from the other languages as
>> I was not able to put leading zeroes in the 4 digits line number.
>> How does one get an integer formatted to a given width with leading
>> zeros in VMS basic??
> 
> First, HELP/LIBRARY=SYS$HELP:BASICHELP is your friend.
> 
> Then look at "PRINT USING" for capabilities.
> 
> print format$(123.45,"<0>###.##")
> 0123.45

Works great. Thanks.

Arne





More information about the Info-vax mailing list