From:	CSBVAX::MRGATE!@KL.SRI.Com:info-vax-request@kl.sri.com@SMTP  8-OCT-1987 20:05
To:	EVERHART
Subj:	Re: Define/form (help)

Received: from ucbvax.Berkeley.EDU by KL.SRI.COM with TCP; Thu 8 Oct 87 14:53:08-PDT
Received: by ucbvax.Berkeley.EDU (5.58/1.27)
	id AA13632; Thu, 8 Oct 87 14:53:52 PDT
Received: from USENET by ucbvax.Berkeley.EDU with netnews
	for info-vax@kl.sri.com (info-vax@kl.sri.com)
	(contact usenet@ucbvax.Berkeley.EDU if you have questions)
Date: 8 Oct 87 18:23:15 GMT
From: tedcrane@tcgould.tn.cornell.edu  (Ted Crane)
Organization: Tompkins County Computing, Ithaca, NY
Subject: Re: Define/form (help)
Message-Id: <2587@batcomputer.tn.cornell.edu>
References: <160@medivax.UUCP>
Sender: info-vax-request@kl.sri.com
To: info-vax@kl.sri.com

In article <160@medivax.UUCP> chinson@medivax.UUCP (Chinson Yi) writes:
>I need help in defining define/form/setup=?????
>How do we put the setup file ????

First thing you have to do is create a device control library.  This is an
orginary VMS text library, with each text module representing one "setup"
sequence.  Name it what you want (I've seen the xxxDEVCTL.TLB convention),
and put it where you want (SYS$LIBRARY is default, and convenient, but I
hate to mess with the system root.  I usually redefine SYS$LIBRARY to be
a search list SYS$LIBRARY=SYS$SYSROOT:[SYSLIB],SITE$SYSROOT:[SYSLIB] or
something like that, and put the device control libraries in the shadow
directory).

Next, you have to create the setup sequences and put them in your library.
One way to do this is to create text modules for every command sequence
(for example, 10cpi, 12cpi, this_font, that_font).  An alternative is to
decide up front what formats you are supporting and make text modules
for those (10cpi_this_font, etc.).  The former is more flexible, but time
consuming.

Finally, you have to tell the queue manager what you did.  Two steps for this.
First, when you create the queue:
	$ init/queue/library=device_control_library_name -
	etc.
Don't forget about:
	$ init/queue  /default=formname   /mounted_form=formname

Second, you have to define the forms using the DEFINE/FORM command you
originally inquired about.

All this is documented in the manual set.  I can't recall where the summary is,
but you should certainly look in the DCL Reference under INIT (queue), DEFINE
/FORM, and the like.

- ted crane