08-15-2009 11:38 PM
I hope that you can help me.
Thanks a lot.
This is my little script, but no ok the sentense pmlfile...
$ create mi.pml
$ open /write /error=SEND_PML PMLFILE mi.pml
$ write pmlfile "CONNECT"
$ write pmlfile "ENABLE OUTPUT /FILE=salida.txt"
$ write pmlfile "show class smh /sm_rec/sm_trans /notif_trans"
$ write pmlfile "show class smh /msg_buff"
$ write pmlfile "DISCONNECT"
$ write pmlfile "EXIT"
$ close pmlfile PML
08-16-2009 03:36 AM
Welcome to the HP ITRC OpenVMS forum!
The script in the original posting merely creates the file, it does nothing to feed the file into PML.
The sample code appears almost identical to that in an article on OpenVMS.org at http://dcl.openvms.org/stories.php?story=09/01/04/
One difference is that the example has variable data to be included in the commands, and this sample code does not.
The invocation of PMI from the above article is:
pml := $smsc$root:[bin]pml
$ define/user sys$output nla0:
If the commands are the same every time, and do not include any variable data, it is often better if you do not build an auxiliary file, and merely pass them implicitly using SYS$INPUT, to wit:
show class smh ...
show class smh ...
$ (whatever other commands are to follow the code).
If there is actually variable data in the input file, then creating the intermediate file is needed, and the example on OpenVMS.org is appropriate.
Any output will appear on SYS$OUTPUT or SYS$ERROR, as appropriate.
- Bob Gezelter, http://www.rlgsc.com
02-26-2013 08:18 PM
You are asking for an explanation on standard OpenVMS methods/behaviour.
IF (and only if) you haved FIXED (static ) input data to provide to a file, then you can put that data straight into the DCL script file.
After starting an executable, any line NOT starting with a $ sign is available as a file "sys$input:"
$ TYPE sys$input:
Now if the data is variable ( dynamic ) then is first needs to be written to a file (or pipe or maillbox ) and thne that file can be indicated as input stream.
Note: Be sure to check out : $ HELP DECK
Hope this helps,