- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- help me with my script 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
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
тАО08-19-2009 03:09 PM
тАО08-19-2009 03:09 PM
help me with my script in OpenVms
This is my first script in OpenVMS, I have looked at your recomendation, but I don't know what write after "$pml/input=sys$input/..."
I have writed a file, but this solution it's middle bad because just I need monitoring some process in PML, but from other linux server, in other words. For me it's not neccesary create temporal files in OpenVMS, I wanna just see the information.
Thanks a lot for all and beautiful day!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2009 05:29 PM
тАО08-19-2009 05:29 PM
Re: help me with my script in OpenVms
I do not have PML installed on my systems, but the following should work. Note that since the input file does not contain any variable data, it can just be read from SYS$INPUT (which simply is inline in a command file).
$ SEND_PML:
$ pml := $smsc$root:[bin]pml
$ define/user sys$output nla0:
$ pml/input_file=sys$input/queue=send_pml_command/response_time=60
CONNECT
ENABLE OUTPUT /FILE=za.txt
time
show class smh /sm_rec/sm_trans /notif_tran
show class smh /msg_buff
DISCONNECT
EXIT
$ EOD
It may be a good idea to review the information in the documentation kit about writing command files and the use of process permanent files in particular.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2009 07:47 PM
тАО08-19-2009 07:47 PM
Re: help me with my script in OpenVms
It never occurred to me that you could use "$ EOD" without starting with "$ DECK".
$ SEND_PML:
$ pml := $smsc$root:[bin]pml
$ define/user sys$output nla0:
$ pml/input_file=sys$input/queue=send_pml_command/response_time=60
$ DECK
CONNECT
ENABLE OUTPUT /FILE=za.txt
time
show class smh /sm_rec/sm_trans /notif_tran
show class smh /msg_buff
DISCONNECT
EXIT
$ EOD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2009 08:08 PM
тАО08-19-2009 08:08 PM
Re: help me with my script in OpenVms
Admittedly, I dropped the $ DECK, but a quick test case (as follows) confirms that it is not needed (unless of course you want a more specific delimiter for end of stream, or if the stream contains "$" in column 1):
$ TYPE SYS$INPUT
This is a first test line
This is a second test line
$ EOD
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2009 08:11 PM
тАО08-19-2009 08:11 PM
Re: help me with my script in OpenVms
> "$ EOD" without starting with "$ DECK".
Apparently it's (helpfully) ignored, except
that "$ EOD" does start with "$", and that's
good enough to do the intended job.
Not classy style, though, I'd say.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2009 08:26 PM
тАО08-19-2009 08:26 PM
Re: help me with my script in OpenVms
Well, while the $ EOD is effectively a NO-OP in this case, it is at least an actual termination of the input stream.
Since the poster states that they are a DCL neophyte, I wanted the simplest example possible. Using "$ (some other command)" could have been mis-interpreted.
In effect, $ EOD has similar properties to the "//* and "/*" cards used on HASP and ASP on System/360 and descendants.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2009 08:51 PM
тАО08-19-2009 08:51 PM
Re: help me with my script in OpenVms
> been mis-interpreted.
What couldn't be?
$ !!! End of input.
A plain end-of-file would work, too. As
usual, many things are possible (and some, I
claim, would be less confusing than a loose
"EOD".)
Interestingly, around here, "HELP EOD"
doesn't actually mention "DECK" except in the
example, so perhaps the Style Police are
getting too fussy, after all. Everything's
complicated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2009 03:43 AM
тАО08-20-2009 03:43 AM
Re: help me with my script in OpenVms
...
$ (run a program or procedure, reading from SYS$INPUT until 'end of data')
data1
data2
data3
$ EOD
...
All lines until, EXCLUDING, the first line starting with "$", will be passed to the program.
What happens to blank lines depends on the program reading the lines. It _may_ interpret a line as "End of data", but could also use is as-is. Without knowing the program, you cannot tell what happens. But no matter what, input ends in the first line starting with "$".
It's good practice, IMHO, to either use
$DECK - $EOD
or specify a specific string where data ends. Something like "ENDOFDATA" (or, as I've seen once: "^Z" (exactly as shown!))
WG
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2009 06:27 AM
тАО08-20-2009 06:27 AM
Re: help me with my script in OpenVms
Trivia: EOJ is analogous to LOGOUT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2009 06:25 PM
тАО08-20-2009 06:25 PM
Re: help me with my script in OpenVms
And unlike LOGOUT, is rarely redefined by the site to invoke a cleanup procedure prior to logging you out. Therefore, EOJ is my standard method of logging out.