How can we execute only one step in a job
Answers were Sorted based on User's Feedback
Answer / radhakrishnan
1. restart the step in the jobcard
2. give a null // at the end of the step.
Thanks,
raddie
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / pavan kumar
give that steps name in the restart parameter on the job
card and after that step put //
| Is This Answer Correct ? | 1 Yes | 0 No |
as per Sravanthi's answer.. A null (/*) statement at the
end of this step can be given for running this step alone
but we have to give restart in job.
suresh,the second method that u have suggested its not
correct, coz if u have more than one step in the same job
then u have to code the same COND parameter for each step.
this will stop the execution of 2 step...
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / valmiki1980
This is a sample to restart only step02 and skip rest all,
please correct me if i am wrong.
--------------------------------------------------
//JOB CARD RESTART=STEP02
//STEP01
//STEP02
//chkstp02 IF STEP02.RC > 12 THEN
//STEP03
//STEP04
//STEP05
/*
// ENDIF
//
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sushanta
Use RESTART parameter and then use null for that step so
that no step gets executed after that.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sachin
Suresh Sir: I agree with your answer but if Condition is True means that particular step(2) will be bypassed however job execution will go to the next step(3). I am just fresher, so please correct me if i am wrong.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / suresh
Hi,
Better we can give the true condition i.e COND=(0,LE) in
all the steps that we don't want to execute.
Please suggest if am wrong
| Is This Answer Correct ? | 0 Yes | 2 No |
what do you mean by include statement in jcl?
how do u define a file in cobol and jcl ?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
What are the difference between jcl and jes?
How do you skip a particular step in a proc/JOB?
Please go thru the below points and let me know how to code this. 1. Sort the input dataset for the condition : Starting position is 37,length of the field is 13 based on character and in the ascending order , starting from position 25 length of 12 ,character and in the ascending order. Use a temporary dataset to hold the sorted file. 2. Use the temporary file created in the above step as the input for the next step. The next step is to execute a program and produce an output file. Use the temporary file created in the above as work file 1 and the output of the file to be created in this step work file 2.Also, pass a parameter to the program that is to be executed in this step. The parameter should have the current date in YYYYMMDD format. For the sake of convenience, you can use the below Job Name : Sample1 Input DSN : PCABDT11.CABD.TEST.INPUT Temporary DSN : Sort1 Output DSN : PCABDT11.CABD.TEST.OUTPUT Program Name : SAMPLE Thanks in Advance for your response.
What is a Dummy Utility and what it does ?
TIME parameter in JOB statement or EXEC statement specifies What type of time (CPU time or execution time)?
i need some shortcuts and tso commands can any on ehelp me in these ?
how you will define a temporary dataset in jcl?
How can you execute a COBOL program via SYSIN in JCL?
what are the ways of passing data to a cobol program from jcl?