I don't know Control-M. But you can create a REXX program, placed on SYSPROC or SYSEXEC called SUBMIT, and an alias of SUB. This would look something like:
/* REXX */ ADDRESS ISREDIT SYMBOL.='?' ... do something here to populate the SYMBOL stem VARNAME='%%JC' JC=SYMBOL.VARNAME "CHANGE '%%JC' '"JC"' ALL" ... and so on.. BUILTIN SUBMIT That last is how you then invoke the normal SUBMIT. ref: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ISPZEM90/3.2.7 On Mon, Oct 7, 2013 at 3:02 PM, Roberts, John J <[email protected]>wrote: > We are about to become a new BMC Control-M installation. Part of this > involves changing our JCL to reference Control-M symbols. So instead of a > plain-jane JOB card, we might have something where the accounting field is > supplied as %%ACCT and the JOB CLASS is specified as %%JC. > > This is all good in PROD, where these symbols are resolved from job > definitions by Control-M before submission. > > But what about unit testing? For one, I don't want to run unit test jobs > from Control-M, since our license will count these against our limit. And > I don't want to force our developers to edit the JCL before submission, > since (a) it would be a PITA, and (b) they would surely forget to cancel > the edit, corrupting the member. > > What I really want is the ability for developers to perform a special > "SUBMIT" from their ISPF EDIT session, where: > (a) the developer is prompted to resolve the symbols before the JCL text > is written to INTRDR, and/or > (b) the symbols are resolved from some configuration file before the > modified JCL is written to INTRDR. > > I think that some kind of ISPF EDIT MACRO could do this work, but I have > forgotten how to do this. I am hoping that this is a common enough problem > that someone else may have developed a solution they could share. > > Note that I know that there are some things related to Control-M that a > simple EDIT Macro could not solve. Stuff like the %%IF-%%ELSE-%%ENDIF > sequences and the built in functions for date calculations and character > substrings. But these are rare enough that I would be happy with a simple > symbol substitution solution. > > I have asked our sysprogs to pose this question to BMC and CetanCorp. But > I suspect that their answer will revolve around their new JCLVERIFY > product. If this can work standalone without adding to our license count, > that would be great. Otherwise we will need this other solution. > > Also, I will need to bring this up with the supplier of our current JCL > validation utility - the product known as JED (dcmsi.com). This has one > nice feature that the new JCLVERIFY lacks, the ability to display the > contents of parameter members, both PDS and PANVALET. JED is also capable > of validating things like SORT and IDCAMS control statements. > > John > > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > -- I have _not_ lost my mind! It is backed up on a flash drive somewhere. Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
