I have a JCL with 10 steps, want to execute first 5 steps
only, what are ways of doing it?is it possible to control
through JOB card?
Answers were Sorted based on User's Feedback
You can create a NULL (//) point after the 5 step. so the
job will stop after step 5 is executed.
I don't think we can do it via JOB CARD. Please let me know
if anyone knows.
Is This Answer Correct ? | 14 Yes | 1 No |
Answer / praveen kumar bejjanki
There are two ways in order to achieve this.
1. Give a null statement(//) after step5
2. Give the cond parameter starting from step6 through
step10 as cond=(0,le). This parameter will bypasses the
step6 through step10 as it satisfies the cond for any of
the RC(return code).
Is there any other way, kindly let me know.....
Thanks!
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / bala
Give COND=(99,NE)for all the other steps following STEP5.
Its skips those steps.
Also, a Null (//) given after STEP5 does the same.
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / veer
we can achieve this with the IEBEDIT Utility......!!!
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / shivakrishna
we can bypass by giving cond parameters in step from 6 if
we know the cond codes from previous steps.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / venkataramana
It is simple after fifth step we will use cond=(0,LE) in
each step for avoiding the execution.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / veer
'to execute first 5 steps only', end of the 5th step
introduce NULL(//) character and run. first 5 steps will
run.
If you want to run step3, step5, step10 like that, use
IEBEDIT utility.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kalaiarasan
Anshuman is wrong its not EIBEDIT, its IEBEDIT
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / anshuman
you can use the IBM utility EIBEDIT for this n mention step
1 to 5
Is This Answer Correct ? | 2 Yes | 4 No |
How do you submit JCL via a Cobol program?
Can we create VSAM file by using IEBGENER?
can i sort packed decimal if i can tell the syntax
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
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.
COND -> step1 . . step2, Step2, Executes if the CC of step1 is 0. But even if it is NOT 0 and if we dont give COND, will step2 be executed ?
How to execute step2,step5,step7 of a proc of 10 steps? You are not allowed to change in JCL.
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
what is the default region size if I dont specify region parametre in my job card ( I know that if I specify region=0k or 0M, then the job will occupy all he available resources at the time of job execution), but I want to know the defult value for "region" paramatre.
How do you handle empty files in a JCL ?
How system will identify whether user wants to create PS or PDS? If answer is SPACE parameter then why we need to pass ps or po as dataset organisation while creation
While using SORT FILES =NONE,XSUM I am getting error "ICE172A E XSUM IS NOT SUPPORTED - USE ICETOOL SELECT IF APPROPRIATE"..I want to write duplicate records a a serparte file..how i can do tht?