- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- DCL Com Procedure
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-11-2005 04:43 PM
тАО10-11-2005 04:43 PM
Thank you in advance.
Ian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 04:53 PM
тАО10-11-2005 04:53 PM
Re: DCL Com Procedure
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 05:00 PM
тАО10-11-2005 05:00 PM
SolutionJohn,
Please reread your question and help us further understand what help you seek.
Give input and output examples as needed.
Show what works, what does not work.
Exact errors, code snippets, whatever is needed to clarify the problem please.
Attach in a text file if needed.
If you indeed want the current system time in a file name then check out something like this:
$ write sys$output f$cvtime()
2005-10-12 00:54:35.73
$
$ time = f$cvtime() -"-"-"-"-" "-":"-":"-"."
$ show symb time
TIME = "2005101200555386"
$ filename = "test" + time + ".txt"
$ show symbol filename
FILENAME = "test2005101200555386.txt"
$
The above 'subtracts' (removes) the punctuation chars (-- ::.) from the time string.
Check out HELP LEXI F$CVT to see how you can just get other selected fields for a certain time.
Check out HELP LEXI F$EXTR and F$SEGM to see how you can select a chunk of string.
Check out F$TIME() for a basic string with the current time.
Hope this helps some.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 05:45 PM
тАО10-11-2005 05:45 PM
Re: DCL Com Procedure
>$extract the current system and concatenate with the name of the file within my VMS com procedure?
Not sure I understand your question.
F$GETSYI("NODENAME") returns the name of the system.
F$ENVIRONMENT("PROCEDURE") returns the name of the executing procedure
F$EXTRACT(pos,size,string) returns the substring of "string", "size" characters long starting at position "pos" (first character is position 0).
Hein has covered time strings (but I'm not sure what he's talking about "F$SEGM" - confusing DCL with BASIC?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 11:30 PM
тАО10-11-2005 11:30 PM
Re: DCL Com Procedure
Hein :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2005 07:37 AM
тАО10-12-2005 07:37 AM
Re: DCL Com Procedure
;-)
Proost,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2005 08:14 AM
тАО10-12-2005 08:14 AM
Re: DCL Com Procedure
What is so special about Boron?
Is computers not mainly about Silicon?
(trace of the Chemical Engeneer of a former life)
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2005 05:01 PM
тАО10-12-2005 05:01 PM
Re: DCL Com Procedure
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2005 05:25 PM
тАО10-12-2005 05:25 PM
Re: DCL Com Procedure
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2005 09:13 PM
тАО10-12-2005 09:13 PM
Re: DCL Com Procedure
Form me, the "5th element" was Mila Jovovich, Bruce Willis was only a taxi driver ;-)
Saludos.
Daniel.