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
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 |
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 |
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 |
In jcl i have 255 steps. In 255 step i declared proc. In proc i have 20 steps this job is executable or not? why?
A job has 150 steps i want to execute only 57th step
Write a JCL by using the below requirement: File1 =1, File2 =11 and output needs to come as File3 =111?
Are all (i), (ii), (iii), (iv) of the below are VALID to reference a temporary dataset ? STEP2 DD1 DD DSN = &&TEMP STEP3 DD2 DD (i) DSN = TEMP (ii) DSN = *.TEMP (iii) DSN = *.STEP1.DD1 (iv) DSN = *.STEP1.DD1.ONE
Explain about LMCOPY -
What is a GDG? Why do we go for a GDG ? utility used to create GDG?
what is A-MODE and R-MODE?
which statement is used to end the in-stream procedure in a jcl?
I have 2 steps in my exec statement , in first step I am creating a gdg, and the output of this step is going into second step as a input, and this second step is abended , now how could i approach in this case.
What is jcl in mainframe?
how do u see jobs submitted before ur job ?
what happens if job falls in loop ? how to resolve it ?