- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: How to create a dummy file in OpenVMS ?
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
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-05-2007 01:57 AM
тАО10-05-2007 01:57 AM
How to create a dummy file in OpenVMS?
With Unix/Linux, i can do this by using "touch" command ?
what will be in OpenVMS ?
Thanks.
-- shashi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:14 AM
тАО10-05-2007 02:14 AM
Re: How to create a dummy file in OpenVMS ?
$ close logical_name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:18 AM
тАО10-05-2007 02:18 AM
Re: How to create a dummy file in OpenVMS ?
Follwing up on Richard's post, logical_name can be anything you want, the word you use here is irrelevant to the file you create. file_spec is the file name you want to create.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:19 AM
тАО10-05-2007 02:19 AM
Re: How to create a dummy file in OpenVMS ?
$ CREATE filename
CTRL-Z (if used interactively)
$ ! next DCL command (if used in DCL procedure)
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:20 AM
тАО10-05-2007 02:20 AM
Re: How to create a dummy file in OpenVMS ?
%DIRECT-W-NOFILES, no files found
$ copy/log nl: t.t
%COPY-S-COPIED, NL: copied to DISK$DSM01:[MCKINNEY]T.T;1 (0 records)
$ dir/siz t.t
Directory DISK$DSM01:[MCKINNEY]
T.T;1 0
Total of 1 file, 0 blocks.
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:27 AM
тАО10-05-2007 02:27 AM
Re: How to create a dummy file in OpenVMS ?
So, here, if i didn't mention any extension, it is creating a file with .dat extension. I don't want that. My intention is, i am doing oracle database installation on OpenVMS, the documentation asked me to create a dummy "oratab" file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:30 AM
тАО10-05-2007 02:30 AM
Re: How to create a dummy file in OpenVMS ?
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:31 AM
тАО10-05-2007 02:31 AM
Re: How to create a dummy file in OpenVMS ?
Personnaly I use $COPY NL: dummy.txt
And on an OpenVMS 8.3 system I might use
$CREATE/FDL="blah blah" dummy.txt
That way you can control teh exact attributes of the dummy file to meet your needs.
Replace the 'blah blah' with an FDL specification like "RECORD; FORMAT FIXED; SIZE 80"
A more useful example might be:
$ cre/fdl="date; expiration 1-jan-2008" dummy.txt
$ dir/full dummy.txt
:
Created: 5-OCT-2007 10:37:29.88
Expires: 1-JAN-2008 10:37:29.88
But what problem are you really trying to solve? How come you think you need a dummy file? They are really rarely needed!
Regards,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:40 AM
тАО10-05-2007 02:40 AM
Re: How to create a dummy file in OpenVMS ?
> $ CREATE filename
> CTRL-Z (if used interactively)
> $ ! next DCL command (if used in DCL procedure)
> $ copy/log nl: t.t
Or, if you wanted a file which had attributes
other than "Record format: Variable length",
then something more elaborate may be needed.
For example:
CREATE /FDL = STREAM_LF.FDL filename
[...]
where:
ALP $ TYPE STREAM_LF.FDL
RECORD
Carriage_Control carriage_return
Format stream_lf
ALP $
Whether this is worth the extra effort
depends on what you intend to do with this
file after you've created it. (If you're
planning to ship it off to a UNIX system
somewhere, then it might easily be.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:42 AM
тАО10-05-2007 02:42 AM
Re: How to create a dummy file in OpenVMS ?
(There are clearly no performance thoughts for this once-per-year-hopefully event. :-)
The easiest thing still is:
$COPY NL: ORATAB./LOG
Be sure to check the Relevant Oracle Doc though. For 10g:
http://download.oracle.com/docs/html/B13681_01/pre_inst.htm#CIHIHABC
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:57 AM
тАО10-05-2007 02:57 AM
Re: How to create a dummy file in OpenVMS ?
In you login.com
$ touch :== append/new nla0:
usage:
$ touch file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 04:18 AM
тАО10-05-2007 04:18 AM
Re: How to create a dummy file in OpenVMS ?
create xxx.yyy and ^Z is what I use for
making null files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 04:48 AM
тАО10-05-2007 04:48 AM
Re: How to create a dummy file in OpenVMS ?
OpenVMS also uses locking, though typically either at the file level with file locking, or applications use locking with direct calls to the distributed lock manager.
So-called dummy files are seldom used in anything other than a quick port of a Unix tool.
FWIW, there are other and rather less flattering names for the concept known as the "dummy file", but -- in deference to our genteel readers -- I'll refrain from further elaboration.
As Hein asked: what are you up to?