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 ?

Answers were Sorted based on User's Feedback



Hi Please try to be to-the-point. 1) How to INCLUDE a JCL segment in a JOB ? (A Small example) 2) ..

Answer / 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

Hi Please try to be to-the-point. 1) How to INCLUDE a JCL segment in a JOB ? (A Small example) 2) ..

Answer / saisankar

i have 3 lines of jcl without jobcard.these 3 lines are
repetitively used by many members.

for reusability point of view these 3 lines are copied
according to the user.for write these 3 lines in member of
a pds.for copying

we write

//jobcard
// include membername
//sysin dd *
/*
//

for info:saisankar85@gmail.com

Is This Answer Correct ?    1 Yes 0 No

Hi Please try to be to-the-point. 1) How to INCLUDE a JCL segment in a JOB ? (A Small example) 2) ..

Answer / praveen bejjanki

1) Not sure what a JCL segment in a job
2) Spool is the place where we will see the status of the
submitted job. generally SDSF or IOF will be the spool.
SPOOL - Simultaneous Pheriperal Operation Online.
3) To direct the output of a jobstep to spool:
The DD stmt of the jobstep should be like below
//DDname DD sysout=*

But most of the people think like if we give like
//SYSPRINT DD SYSYOUT=*
//SYSOUT DD SYSOUT=*
output will be routed to spool which is wrong.
But sysprint DD stmt is used to route all the
messages,stmts generated by the utility(cobol program) to
be printed in spool
& sysout is used for displaying the Display stmts in cobol
program.

I hope this might give a clear picture of what you are
looking for

Can anyone tell me what a job segment in job

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More JCL Interview Questions

How do you find which GDG is using which dataset?

3 Answers   Patni,


If a job has 3 steps and step 1 and step 3 should get executed and step 2 should not get executed irrespective of the return code from the previous steps. How can it be done?

5 Answers   TCS,


how to have variable length record in outrec..i have the requmt as follows.. i/p file variable lenght record output file : i need to alter the input and write into outrec(another file) sort fields: copy from(dd1) using ctl1 ctl1cntl dd * outfil fnames=xxx, outrec=(1,131) here i outrec is bombing with error..how to overcome this defect...???

1 Answers  


what is a null indicator in db2?

5 Answers   Fiserv, IBM,


A statement about PROCs is " In PROCs, Symbolic Parameters can be assigned on PROC and EXEC", BUT On which EXEC, (i) On the JCL's EXEC which is calling to PROC1. (Inside JCL, EXEC PROC1) (ii) or On the PROC's EXEC where it calls the PGM1. (Inside PROC, EXEC PGM=PGM1)

1 Answers   IBM,






there are 10 steps in jcl how to execute the steps from step2 to step8 only

6 Answers   EDS,


I have a JCL which 20 steps. How do I execute 17 th step alone (It should execute only 17ths tep.and it should not execute 18,19,20 steps??

9 Answers   IBM, Infosys, TCS, Xansa, Xchanging,


Explain about File Tailoring

1 Answers  


How are datasets concatenated?

3 Answers   CitiGroup,


How do you override a specific DDNAME/SYSIN in PROC from a JCL?

6 Answers   CTS,


I have a job (4 steps) with time parameter coded in job & exec, say time=10 in job & time =3,2,2,4 in each steps. Will the job executes successfully?

4 Answers   Cognizant,


What are the maximum and minimum sizes of any CONTROL AREA (VSAM datasets) ?

2 Answers   Patni,


Categories