- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Fixing an empty File Name in the file header
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
тАО10-14-2012 10:34 PM
тАО10-14-2012 10:34 PM
Solution
>> Maybe it's just a broken field length?
The filename is a 'space terminated' string.
I tested the program I just post with string "Hello World" and the name became "Hello" according to most tools, notably F$FID
$ cre RAM:[HEIN]ABC.TXT;/log test Exit %CREATE-I-CREATED, RAM:[HEIN]ABC.TXT;1 created $ dir/file/nohead/notrail/wid=file=30 ram:[hein] RAM:[HEIN]ABC.TXT;1 (13,1,0) RAM:[HEIN]XYZ.DAT;1 (12,1,0) $ mcr sys$login:ZAP_NAME_IN_HEADER RAM:[HEIN]ABC.TXT "hello world" ... really should have a FILE VERSION but I'll let it slide. $ write sys$output f$fid("ram:","(13,1,0)") RAM:[HEIN]hello;
Also... the program posted uses simple C argv... which lowercases everything.
Best provide a number name in "UPPERCASE" with quotes.
fwiw.
hein
wefwer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2012 10:57 PM
тАО10-14-2012 10:57 PM
Re: Fixing an empty File Name in the file header
Yes, that works for me.
Thanks Hein!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2012 07:47 PM
тАО10-25-2012 07:47 PM
Re: Fixing an empty File Name in the file header
Hein, one more question (I hope!) ....
I've noticed when I run the program that it sets the ODS-2 file header fields (filename) but ignores the ODS-5 fields (filename type, e.g. "ODS-2", and filename length. Setting just the filename doesn't seem to upset ODS-5 in the limited testing I've done. So I'm just wondering if you have any further comment.
(I can read and understand your program and I found the FI5DEF header file to see what it does, but I wasn't able to work out how best to use this information in the program -- assuming it matters, which it might not.)
Thanks,
Jeremy Begg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2012 06:34 AM
тАО10-27-2012 06:34 AM
Re: Fixing an empty File Name in the file header
From the original post:
>>> Header area
>>> ...
>>> Structure level and version: 2, 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2012 06:47 PM
тАО10-28-2012 06:47 PM
Re: Fixing an empty File Name in the file header
Thanks!
- « Previous
-
- 1
- 2
- Next »