- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Changing file format!
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2010 05:54 AM
тАО01-08-2010 05:54 AM
File organization: Sequential
Shelved state: Online
Caching attribute: Writethrough
File attributes: Allocation: 73, Extend: 0, Global buffer count: 0, Version limit: 2, Contiguous best try
Record format: Stream, maximum 0 bytes, longest 0 bytes
Record attributes: Carriage return carriage control
and I want it convert it to
File organization: Sequential
Shelved state: Online
Caching attribute: Writethrough
File attributes: Allocation: 73, Extend: 0, Global buffer count: 0, Version limit: 2
Record format: Variable length, maximum 0 bytes, longest 259 bytes
Record attributes: Carriage return carriage control
i.e. from STREAM to VARIABLE,
What would be the appropriate DCL command??
thanks
Dave.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2010 06:12 AM
тАО01-08-2010 06:12 AM
Re: Changing file format!
traditionally,
make an FDL specifying the desired attributes, and
$ convert infile outfile/fdl=fdlfile
Starting at some 7.3-2 patch you can specify the attributes directly on the commandline, but I do not know (and can not at the moment get) the exact incantation.
Probably Hein will jump in for that...
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2010 06:19 AM
тАО01-08-2010 06:19 AM
Re: Changing file format!
Yes, I also believe there is a magic incantation which will do this. I think is is something like
$ Set file /attrib=RFM:VAR
unfortunately when I tried this (on a copy) it made some strange change. i.e. when I "typed" the file, it displayed nothing, although the file-size said it was not zero-length, and the EDT editor was able to load the file into its buffer, but with record length errors.
I too wait for Hein.
(probably having a late breakfast)
thanks
Dave.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2010 06:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2010 08:50 AM
тАО01-08-2010 08:50 AM
Re: Changing file format!
$Convert/FDL=NL: anything variable-length-record-file.dat
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2010 09:52 AM
тАО01-08-2010 09:52 AM
Re: Changing file format!
Slick!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2010 01:57 PM
тАО01-08-2010 01:57 PM
Re: Changing file format!
Dave,
>>>
$Convert/FDL=NL: anything variable-length-record-file.dat
<<<
Please, reopen, and give Hein 10 points!
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2010 01:13 PM
тАО01-10-2010 01:13 PM
Re: Changing file format!
>$ Set file /attrib=RFM:VAR
This hacks the RMS attributes switching RFM from STM to VAR. However, it does NOT change the metadata in the file. So the 2 byte record length fields at the beginning of each record, required by VAR format are not present, and the trailing CR-LF record delimiters of STM format are still present. The resulting file is unlikely to make much sense.
The requested change requires a CONVERT which will change each record to the correct format.
Hein's /FDL=NL: relies on the RMS default being VAR. A very neat trick for this specific question, but not for the general case of CONVERTing between formats.
"you can specify the attributes directly on
the commandline"
The /FDL qualifier now accepts either a file specification, or an FDL control string in double quotes. So, anything you did as /FDL=SYS$INPUT can now be in the command line. Just add a semicolon to the end of each line in your input stream and quote the whole string. Thus:
$ CONVERT/FDL="record;carriage_control carriage_return;format variable" infile outfile
RMS engineering accepted this change because it allowed CONVERT to be used in an inline PIPE sequence.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2010 03:44 AM
тАО01-11-2010 03:44 AM
Re: Changing file format!
thanks guys
Dave.