I am trying to submit a job thru OPSMVS and need help setting it up using OPSUBMIT, if possible. The steps are
1) Submit a job that will issue a command against the CA database to list all the certificates
2) Write the output to a dataset
3) Send the output to a group via email.
Release :
Component : OPS/MVS
Per the OPSUBMIT documentation, located at:
just change the member JCL to be similar to the below, but using any preferred variable:
a.1="// JOBCARD HERE "
a.2="// CLASS=B,MSGCLASS=X,"
a.3="// NOTIFY=nnnnnnn"
a.4="//* POSSIBLE ACCOUNT 100000000"
a.5="//ALLCERTS EXEC PGM=SAFCRRPT,PARM='TITLE(Current Certificates)'"
a.6="//* "
a.7="//SYSUDUMP DD SYSOUT=* "
a.8="//SYSPRINT DD DISP=SHR,DSN=ABCD.OPS.TSS.CERTS"
a.9="//SYSIN DD *"
a.10="RECORDID(CERT-) detail EXT"
a.11="//*"
a.12="//REXXEXP EXEC PGM=IKJEFT01,"
a.13="// PARM='WRTEFILE' "
a.14="//SYSEXEC DD DISP=SHR,DSN=ABCD.OPS.TEST.REXX "
a.15="//SYSTSIN DD DUMMY "
a.16="//SYSTSPRT DD SYSOUT=* "
a.17="//XX1 DD DISP=SHR,DSN=ABCD.OPS.TSS.CERTS"
a.18="//SMTPIN DD DISP=SHR,DSN=AFSD.TSS.MAIL "
a.19="//SMTPOUT DD SYSOUT=(B,SMTP)"
a.20="//* "
n = OPSUBMIT(a.)
NOTE: if the jobcard is less than 3 lines, then renumber the arguments subsequent to the jobcard lines.
The logic inside the REXX WRTEFILE should should read the files from DDs XX1 and SMTPIN and write the output in SMTP format to the DD SMTPOUT.
Then you may create a rule that uses the ADDRESS OSF command, which is documented here:
ADDRESS OSF - Route TSO Commands to OSF-Class TSO Server
For example, if your member above is called MEMBER1, then the command within your rule would look like:
ADDRESS OSF
“OI MEMBER1”