HP OpenVMS Systems

ask the wizard
Content starts here

DCL symbol substitution? (MAIL)

» close window

The Question is:

How can I pass a parameter into the subject of a mail message in a DCL command

The Answer is :

  Example, using symbols to provide subject, input file and address for a
  mail message.
$ subject_text="This is the subject"
$ send_file="DKA0:[WIZARD]SAMPLE.TXT"
$ address="NODE::USER"
$ MAIL/SUBJECT="''subject_text'" 'send_file' 'address'

answer written or last revised on ( 2-NOV-2000 )

» close window