Following are examples of the //SYSIN DD statements used to create, edit or append PROSE in batch JCL for CA 7.
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.
The first example will CREATE a PROSE if one does NOT exist, BUT will also EDIT (REPLACE) an existing PROSE for job PRODJOBA
(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
/LOGOFF
Use the following to append another prose to the end of another job that already has a prose.
Add a Job to the database in this example APPENDX.
Add the PROSE to job APPENDX that you wish to 'append' to the END of another job's PROSE.
Job APPENDX will include only a job definition and a PROSE).
This example will insert the PROSE from job APPENDX after the last line of the PROSE of job PRODJOBB.
//SYSIN DD *
/LOGON userid
PROSE
FETCH,JOB,JOB=PRODJOBB
APPEND,JOB,JOB=APPENDX <- job APPENDX with PROSE
REPL,JOB,JOB=PRODJOBB
CLEAR
/LOGOFF
/*