Can we have a JOBSTEP without any EXEC ?

Answers were Sorted based on User's Feedback



Can we have a JOBSTEP without any EXEC ? ..

Answer / prachi

No... you need to have the EXEC for each JOB step.

Is This Answer Correct ?    10 Yes 2 No

Can we have a JOBSTEP without any EXEC ? ..

Answer / zerro

No, you can't. But you can use system program IEFBR14 to do
nothing on the sole step, e.g.
//MYJOB JOB
//MYSTE EXEC PGM=IEFBR14
p.s. what is the purpose to write a job without any real
work inside?

Is This Answer Correct ?    2 Yes 0 No

Can we have a JOBSTEP without any EXEC ? ..

Answer / vinay sonar

No,the job will get abend and you will get JCL ERROR
as 'JOB HAS NO STEPS'

Is This Answer Correct ?    1 Yes 0 No

Can we have a JOBSTEP without any EXEC ? ..

Answer / saisankar

for testing purpose it was ok.

job will submits but for executing there is no steps.

it gives

"IEFC607I JOB HAS NO STEPS"


any forother info:saisankar85@gmail.com

Is This Answer Correct ?    2 Yes 2 No

Can we have a JOBSTEP without any EXEC ? ..

Answer / saravanan

"why? I need the explanation in this. Can any one give why
the Jos is giving the JCL error. 'JOB HAS NO STEPS'


--because u would have missed
//* --Prior to the exec steps like
EXEC <Proclib>

Or u would have missed the keyword EXEC itself. Please
check.

Is This Answer Correct ?    1 Yes 1 No

Can we have a JOBSTEP without any EXEC ? ..

Answer / srikanth

why? I need the explanation in this. Can any one give why
the Jos is giving the JCL error. 'JOB HAS NO STEPS'

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More JCL Interview Questions

if in a job, region is mentioned in both jobcard and in step then which is cosidered at the step level? A job has region 4k in jobcard and step1 with region 0k and step2 with 16k, then what is the region allocated for the entire job? what is the region step1 takes? what is the region step2 takes?

4 Answers  


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.

2 Answers  


Whats error code s222?

7 Answers   Patni,


How to submit multiple jobs. These jobs are members in PDS. The second job should run if the first job runs successfully and so on.

1 Answers  


how do you resolve for soc7 error

6 Answers   ACS, iGate,






Mention the types of job control statements?

0 Answers  


Suppose i have a file with 10 recs and i want to skip only the 7 th record and copy the rest into another file. How do i do it using SORT?

7 Answers   VS, Wipro,


What is the purpose of dd dummy statement?

0 Answers  


How do you access an uncatalogued dataset in a jcl?

0 Answers  


What is the meaning of the EXEC statement keyword, COND? What is its syntax?

2 Answers  


I have multiple jobs ( JCLs with several JOB cards ) in a member. What happens if I submit it?

16 Answers  


When we give TYPERUN = SCAN , what are the syntax errors we get?

5 Answers   Kanbay,


Categories