How to issue CA Spool Commands in Batch Jobs
search cancel

How to issue CA Spool Commands in Batch Jobs

book

Article ID: 137230

calendar_today

Updated On:

Products

Spool

Issue/Introduction

Can I execute CA Spool commands in batch, e.g. /DF,D=dest_name or FA (files all)


Environment

Release : 12.0

Component : CA Spool

Resolution

To issue CA Spool  commands in batch,  use the sample TSOCESF delivered as a source module in the library CBQ4OPTN.


Implementation steps:


1) Assemble this module using the sample CBQ4OPTN(ASMTSOCE)


2) Linkedit this module using the sample CBQ4OPTN(LNKTSOCE)


3) Include the following CID statement in the CA Spool ESFPARM deck:

CID TS2M,USMR=NO,MAXPORT=5,OPENTYPE=U


4) Recycle the CA Spool started task 


5) Use a TSO batch job as the sample below:

//STEP2 EXEC PGM=IKJEFT01

//STEPLIB DD DISP=SHR,DSN=prefix.CBQ4LOAD

//SYSPRINT DD SYSOUT=*

//OUTPUT DD SYSOUT=*

//SYSTSPRT DD SYSOUT=*

//SYSTSIN DD *

TSOCESF 'DF' SUBSYS(ESF)

/*                      


Where 'DF' is a sample CA Spool command.

Additional Information

List of commands that can be issued can be found in the link below:


CA Spool Command Reference