Computing.Net > Forums > OpenVMS > file attributes

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

file attributes

Reply to Message Icon

Name: freed0m
Date: August 14, 2007 at 23:13:51 Pacific
OS: Open VMS
CPU/Ram: 1GB
Product: ES80
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: Bob Gezelter
Date: August 15, 2007 at 17:12:48 Pacific
Reply:

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 ).


0
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: file attributes

How to edit a binary file ? www.computing.net/answers/openvms/how-to-edit-a-binary-file-/191.html

ASCII -1 character www.computing.net/answers/openvms/ascii-1-character/156.html

Reading Savesets under Windows www.computing.net/answers/openvms/reading-savesets-under-windows/502.html