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 |
How can we execute only one step in a job
22 Answers MAHINDRA, Mind Tree, Tech Mahindra,
IN-STREAM DATA NOT ALLOWED IN PROC how can come out from this problem
What are s0c1, s0c4, s0c5, s0c7 and socb?
how can the same proc be re-used and called by many jobs?
how many members can be created inside a single pds?
How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.
I have a file in which I have 20 records. I want my first record to go into file 1 and second record to go in second file. I want to copy the alternate records like this in the two output files. How can I do this using JCL?
How to create delta file using JCL
What does a disposition of (NEW,CATLG,KEEP) mean?
How to execute 300 steps in a Job?
Are there any set of rules for the names of the steps used in a job? What are they?
Max generations in GDG??