When running Finalist in a batch environment, you can run either as a z/OS batch job or a DL/I batch job.
When running as a z/OS batch job, follow the normal steps for running Finalist.
When running with the IMS DLIBATCH procedure (or executing DFSRRC00 directly), you must concatenate the hlq.IMSBATCH.LOAD library in front of hlq.IMS.LOAD library and the hlq.BATCH.LOAD library when specifying your job's STEPLIB or JOBLIB. For example:
//STEP3 EXEC DLIBATCH,MBR=program_name,
// PSB=program_psb
//G.STEPLIB DD
// DD
// DD DISP=SHR,DSN=hlq.IMSBATCH.LOAD
// DD DISP=SHR,DSN=hlq.IMS.LOAD
// DD DISP=SHR,DSN=hlq.BATCH.LOAD
//G.IEFRDER DD DSN=NULLFILE,UNIT=SYSDA
//G.SYSUDUMP DD SYSOUT=*
//G.SYSOUT DD SYSOUT=*,
// DCB=(LRECL=133,BLKSIZE=0,RECFM=FBA)
//G.DFSVSAMP DD *
8192,40
/*
You must also create a PSB for the application program. The application program must accept the PCBs passed into the program and pass the PCBs on to Finalist.
When using the DLIBATCH procedure, you use the same DD names as you would for your normal z/OS batch processing but you must point to the DL/I datasets that are used by the IMS On-Line system.