Computing.Net > Forums > OpenVMS > Add header in a binary file in Open

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.

Add header in a binary file in Open

Reply to Message Icon

Name: ddc
Date: April 25, 2008 at 03:33:21 Pacific
OS: OpenVMS
CPU/Ram: alpha
Product: HP
Comment:

Hi, I need to add an header in txt format to a bynary file produced in OpenVms .. how it can be made ?




Sponsored Link
Ads by Google

Response Number 1
Name: Joseph.Huber
Date: April 28, 2008 at 01:14:02 Pacific
Reply:

There is nothing specific for VMS in this question, it is more general programming.
For existing files: put the header text in a new file, then append the "binary" file.
(with DCL command APPEND).
Depending on the file/record format of the binary file, this may or may not work. Eventually You have to create the header file with the specific FDL of the "binary" file (CREATE/FDL=fdlfile, the fdlfile is the output of ANALYZE/RMS/FDL of the existing 'binary" file).

But as always: what do You want to achive ?
All depends on the application which wants to use the file(s). Do they expect to have the text at the beginning ?
There is no general meaning of a "binary" file. The programming language of the application usually defines file/record structures.


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: Add header in a binary file in Open

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

VMS binary file conversion to dos www.computing.net/answers/openvms/vms-binary-file-conversion-to-dos/281.html

Create a new file with text in existing file www.computing.net/answers/openvms/create-a-new-file-with-text-in-existing-file/594.html