Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

script that show it the results (pml) in standar output.

 
CIDJULIO
Occasional Contributor

script that show it the results (pml) in standar output.


Dear friends, thanks for everything. I really appreciate your effort for help me.
At this moment, I have the little script and It running fine, but I don`t want create a pml file or temporal files, just I want what the result show it in the standar output to may running other command in a unix server (for example: rsh)
I hope that you are fine and excuse me if my english not is very well.
2 REPLIES 2
Hein van den Heuvel
Honored Contributor

Re: script that show it the results (pml) in standar output.

Cidjulio,

I did not follow the other topics on the subject so I may be missing the point here.
With that said, some observations:
- you can get rid of the temp file with a simple '$ delete 'pml_script'; after the pml command. Optionally add /LOG
- you can see the output on sys$output (stdout) by using a $ TYPE zalida.txt
after the PML command. And you may want to delete that output file after the type.
- but why not, just NOT specifying the output file, or explicitly sending that directly to sys$output: ?
- Assigning SYS$OUTPUT to NL: always worries me... what if the program wants to tell me something useful, for example why it can not work?

Finally, if you you a temp file, please consider putting it's name in a variable as a first step, not a middle step, and after that first step always use the variable, and never the string constant.

So for the example the critical lines become:

$ pml_script = "za.pml"
$ create 'pml_script'
$ open /write /error=SEND_PML PMLFILE 'pml_script'
:
$ delete 'pml_script';/log

Ditto for the output file (if that is needed):

$ pml_output = "zalida.txt"
:
$ write PMLFILE "ENABLE OUTPUT /FILE=" + pml_output
:
$pml ...
$type 'pml_output'
$delete 'pml_output';

Good luck!
Hein.
CIDJULIO
Occasional Contributor

Re: script that show it the results (pml) in standar output.

Thanks for everything my dear Hein van den Heuvel.

Buautiful day!!