- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Setting VMS file attributes
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
Forums
Discussions
Discussions
Discussions
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
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
03-25-2004 03:47 AM
03-25-2004 03:47 AM
I then need to run an analysis program on the VAX which reads these files.
The VAX program expects certain attributes for the file, but the creation defaults are incompatible.
I can log a terminal onto the VAX and change the attributes manually using the VMS command SET FILE /ATTIBUTES=(RAT:NONE, RFM:FIX, LRL:512) filename, but I would prefer that the users do not have to do this.
Is there any way to send a VMS command from my PC program to amend the file attributes, or a way to set the directory ACLs so that the default attributes are correct?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 03:58 AM
03-25-2004 03:58 AM
Re: Setting VMS file attributes
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 04:02 AM
03-25-2004 04:02 AM
Re: Setting VMS file attributes
The version is 7.3a with all the latest ECOs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 04:15 AM
03-25-2004 04:15 AM
Re: Setting VMS file attributes
since you are running the analysis program on the VAX the easiest solution is to just stuff the set file and the program execution into a little DCL and be done with it.
Example:
Assume your analysis program is my_analysis.exe, i.e. no you use
$ run my_analysis.exe to run it
Create a small DCL
$ set file/attributes(rat:none, rfm:fix, lrl:512)
$ run my_analysis.exe
Execute the DCL instead of the program.
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 04:23 AM
03-25-2004 04:23 AM
Re: Setting VMS file attributes
Unfortunately, for every test run the set of files created will be different, and have different names (although there will be some similarities). My PC program knows the specific file names and the VAX program allows the user to select the files for the specific analysis from a particular selection of the files in the target directory.
I think I could work using this method with a bit more thought on the problem, but any better solutions would be preferable.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 04:38 AM
03-25-2004 04:38 AM
Re: Setting VMS file attributes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 04:58 AM
03-25-2004 04:58 AM
Re: Setting VMS file attributes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 07:25 AM
03-25-2004 07:25 AM
Re: Setting VMS file attributes
how does your analysis programm know which files to use?
Somehow your Vax job does know, so tyou can also use that knowledge in Martin's procedure!
If it is unsufficiently clear how you should do that, then post just HOW you activate your analysis execution, and I bet there will be a race condition over here in trying you provide your answer.
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 06:06 PM
03-25-2004 06:06 PM
Re: Setting VMS file attributes
Does the analysis on the VAX needs to be started by a user, or could it be done automatically, immediately after transferring them?
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 07:01 PM
03-25-2004 07:01 PM
Re: Setting VMS file attributes
assuming you have Pathwork running on Vax;
assuming in your shared folder all files must be /ATTR=(RAT:NONE,RFM:FIX,LRL:512) you can define host attribute for this share:
$ ADMIN MOD SHARE
Usually all files created in share folder are stream format; qualifier /HOTS=RMS permit you to define sequential fixed RMS file format, with 512 record lenght.
Warning: this option is valid for all files created so if you need a text file in same folder you must execute SET FILE ATTR....
H.T.H.
@Antoniov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 08:26 PM
03-25-2004 08:26 PM
Re: Setting VMS file attributes
I shall do some investigation into setting the default file attributes from the share definition since this one seems to be feasible.
I have subsequently found out that different users work in different disk areas without common shares and copy directories as required. The use of a comand file to perform the directory copying rather than directly using the DCL copy command is another approach I will consider.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 09:46 PM
03-25-2004 09:46 PM
Re: Setting VMS file attributes
http://zinser.no-ip.info/vms/sw/job_daemon.htmlx
to trigger a DCL to change the file attributes)
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 05:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 07:20 PM
03-28-2004 07:20 PM
Re: Setting VMS file attributes
The use of RSH looks promising and certainly merits further investigation.