Hi Please try to be to-the-point.
1) How to INCLUDE a JCL segment in a JOB ? (A Small example)
2) What is SPOOL and what is SPOOL FULL ? and how to direct
the output of a Jobstep to SPOOL ?

Answer Posted / prachi

1) you can use INCLUDE MEMBER as below

//JCLLIB ORDER=<Give the PDS name of the member you want to
include>
//INCLUDE MEMBER=<Give the member name here>

2> SPOOL is the place where you can see the status after
executing the job

3>To direct the output of a jobstep to spool we need to
give
//SYSPRINT DD SYSYOUT=*
//SYSOUT DD SYSOUT=*

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of //cntl statement?

840


Explain dd statement in jcl?

650


How do you overcome this limitation ?

704


what is the use of IEBGENER utility?

666


which parameter is used to check the syntax of a jcl without executing it?

806






Matching Logic in Jcl not in cobol.Could any one please answer this question

3677


How can a stopped job be started again?

721


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

1776


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

720


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

625


For what purpose steplib and joblib are used ?

690


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

1740


What is the maximum length of a single line of jcl?

836


Name the statement which can be used to send data to another mvs jes3 node?

611


What is NOTCAT ?

750