Here's a slightly modified verion of m1 that will let you check internal variable table for variable resolution first. If it doesn't find it there, then it will check the envrionment. (The original didn't check the environment.)
That way you can assign the value before running the job through m1.
You're original JCL example would be changed to:
//@[EMAIL PROTECTED] JOB ${acct},'@pgmrid@',
// [EMAIL PROTECTED]@,
// [EMAIL PROTECTED]@
And to "ftincl" it, setup the shell variables:
export mfid='JMCKOWN'
export acct='A,B'
export pgmrid='John McKown'
export msgclass='C'
export jobclass='A'
And invoke m1:
m1 <filename>
That's all that's needed. You'll also see from the comments at the top of
m1 that it can do other stuff like includes and conditionals.
Anyway, hope it helps...
Leland
m1
Description: Binary data
