Thomas Hagen ([log in to unmask]) wrote:
: Hello, could someone please explain how to start a job in a command file?
: The JOB description should be included in the command file like this :
 
: PARM parameter1
 
: STREAM ,*
: *JOB ...
: *TELL @;!parameter1
: *EOJ
 
Here's one way... build your job into a temp file using echo-command
and you'll get all substitutions done with echo's, then stream the temp
file.  Use ">" to start the file and ">>" to append to it... see:
 
parm parm1="hi there!" parm2=default2 parm3=default3 ...and so on
echo !!job jname,user/upass,acct/apass > jobfile
echo !!tell @;!parm1                   >> jobfile
...
echo !!eoj                             >> jobfile
stream jobfile
 
and the resulting file looks like:
 
:print jobfile
!job jname,user/upass,acct/apass
!tell @;hi there!
!eoj
 
Eero Laurila - HP CSY Networking lab.