How to create, edit or append PROSE in BATCH in CA 7

Document ID : KB000022464
Last Modified Date : 14/02/2018
Show Technical Document Details

Summary:

Following are examples of the //SYSIN DD statements used to create, edit or append PROSE in batch JCL for CA 7.

Instructions: 

If you need to create, edit or append a PROSE in BATCH, use one of the two following //SYSIN DD * statements:
(The "I" after EDIT stands for INSERT, so be sure to follow by a space and then a comma)

BE CAREFUL NOT TO OVERRIDE (REPLACE) EXISTING PROSE IF THIS IS NOT YOUR INTENT.
SEE BELOW "APPEND JCL" FOR ADDING LINES TO THE END OF ALREADY EXISTING PROSE.

This first example will CREATE PROSE if one does NOT exist,
BUT
will also EDIT (REPLACE) an existing PROSE for jobs PRODJOBA and PRODJOBB.
(Be sure to verify this is what you want to do)

//SYSIN DD *
/LOGON userid
PROSE
EDIT
I ,
PROSE GOES HERE LINE 1 FOR PRODJOBA 
PROSE GOES HERE LINE 2
PROSE GOES HERE LINE 3
$IEND
XSEQ
SAVE
SAVE,JOB,JOB=PRODJOBA
REPL,JOB,JOB=PRODJOBA
CLEAR
PROSE
EDIT
I ,
PROSE GOES HERE LINE 1 FOR PRODJOBB
PROSE GOES HERE LINE 2
$IEND
XSEQ
SAVE
SAVE,JOB,JOB=PRODJOBB
REPL,JOB,JOB=PRODJOBB
CLEAR
/LOGOFF

Use the following to APPEND the same prose to the end of several different jobs' prose.
You must ADD a JOB to the database (example below uses job name APPEND).
You must ADD the PROSE to this new job that you wish to 'append' to the END of the listed job's PROSE.
(This new job (APPEND) will include only a job definition and a PROSE).
This example will insert the PROSE (contained within job APPEND) to the 'END' of jobs PRODJOBC and PRODJOBD.

//SYSIN DD *
/LOGON userid
PROSE
FETCH,JOB,JOB=PRODJOBC
APPEND,JOB,JOB=APPEND                   <- job PROSE named APPEND
REPL,JOB,JOB=PRODJOBC
CLEAR
PROSE
FETCH,JOB,JOB=PRODJOBD
APPEND,JOB,JOB=APPEND
REPL,JOB,JOB=PRODJOBD
CLEAR
/LOGOFF
/*

Additional Information:

As always, please contact CA Technologies support for CA 7 if you have further questions.