Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi All
Please help me to set file attribute with record format: (Stream_LF) to (Variable length). I tried the below command but it did not work at all
$ DIR/FULL MYFILE.TXT
....
Record format: Stream_LF, Maximum 0 Bytes, longest 232 bytes
...$ set file /attrib=(rfm:Variable length) MYFILE.TXT ----Not working!
Much appreciated for all your help
Fredom

Fredom,
Setting the file attributes will not, in and of itself, change the contents of the file. Changing the attributes will merely change the meta data maintained by OpenVMS' RMS in the file header.
Presuming that the actual contents of the file are Stream_LF, then the CONVERT utility is the way to accomplish the conversion.
If the contents of the file are correct, and merely the meta data is incorrect, then the SET FILE/ATTRIBUTES command is correct, except that the option is RFM:VAR, not RFM:Variable length.
Both CONVERT and SET FILE are documented in the online HELP text. The complete documentation for both is also available at the OpenVMS www site (http://www.hp.com/go/openvms ).

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |