Is stepname is a MUST and should be unique also for each
JOBSTEP ? or system can supply the stepname for a step which
is not given a name by the programmer ?
Answers were Sorted based on User's Feedback
Answer / rikdeb
If u give the same step name in one JCL it will issue a
warning.No error message will be thrown.
| Is This Answer Correct ? | 4 Yes | 0 No |
step name is not unique.we can take same stepname to
multiple jobs but at the time of debugging point of view
application prog is very easy while giving different
stepnames.
jcl execution is line by line,once it executed it wont mind
the what is the previous job.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / vinay sonar
No,the step name need not to be unique.the job will get
abend and you will get JCL ERROR as 'JOB HAS NO STEPS'
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / aaa
No
JES will automatically execute it but o/p will be unpredictable.
and steps will be queued and o/p will be random in order
there will be no error and warning
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / prachi
In JCL, two job steps with the same stepname will give an
error. You cannot have the jobstep with the same name in
the same JCL.
And also the stepname is must .Otherwise you will get an
error.
| Is This Answer Correct ? | 2 Yes | 6 No |
How can we execute only one step in a job
22 Answers MAHINDRA, Mind Tree, Tech Mahindra,
How to DEBUG a JCL?
Hi, all suppose i have 5 steps (S1,S2,S3,S4,S5) what will happen if cond is true or false (which of the other steps get executed)? 1) //s3 exec pgm=abc,cond=(0,le) 2) //s3 exec pgm=abc,cond=(0,le,step2) 3) In the jobcord RESTART=step3,cond=(0,le) 4) can i code COND=TRUE in jobcard, if yes what will happen?
can we bowse or edit the GDG dataset if it is a tape entry?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
what are the ways of passing data to a cobol program from jcl?
which parameter is used to check the syntax of a jcl without executing it?
Is it possible to define dd statements as you want?
On the DD statement, what is the main difference between creating a new sequential flat file and a partitioned dataset?
1) Is CLASS used for assigning Priority (as we say a job having class '6' will run before the job having class '5'? then what is the difference between CLASS and PRTY ? 2) In a same JCL, 2 JOB statements with different Classes and NO PRTY are submitted ? which will run first ? & with different classes and different PRTY also, which will run first now ?
WHAT WILL HAPPEN TO A FILE IF DISP=(MOD,DELETE,DELETE)
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?