There are 100 steps in a job card.If we want to execute 100th step,what to do? and but remaining 99 steps should not execute

Showing Answers 1 - 27 of 27 Answers

sundaramoorthi

  • Mar 3rd, 2006
 

For this we have to use RESTART parameter like in jobcard we have to write RESTART = STEP100

  Was this answer useful?  Yes

Dileep

  • Mar 6th, 2006
 

Just put the name of 100th step in the Restart parameter of job card. That's it.Simple solution.

Please be asking doubts.

regards ,

dipu

  Was this answer useful?  Yes

Harish

  • Mar 26th, 2006
 

1 By using restart on job statement.

  Was this answer useful?  Yes

Manoj

  • May 20th, 2006
 

Suppose i have 110 steps , and i want to execute only step 100, step 1 to 99  and step 101 to 110 should not be execute. How i will do this.

paritosh

  • May 26th, 2006
 

Hi I have a doubt in JCL. How do I compare a ps 2 ps or pds 2 pds from ispf without going into ispf & also how am I to find out with a record is a ps or pds from ispf without again going into it.reagrds pari.

  Was this answer useful?  Yes

Ritam

  • Jun 4th, 2006
 

Hi,

 We can use RESTART command to execute 100th step, & for others we can use COND.

  Was this answer useful?  Yes

Selvam

  • Sep 5th, 2006
 

to execute only a particular step in between we can use

RESTART = <stepname> e.g., RESTART = STEP100

and to bypass all other following steps we can use Null statement (//) after STEP100 and the Jop will be end at STEP100

  Was this answer useful?  Yes

schavali

  • Sep 7th, 2006
 

use restart parameter RESTART=STEP100 and place // after STEP100

STEP100

----

----

//

STEP101

  Was this answer useful?  Yes

Venkatesh

  • Dec 12th, 2006
 

Hi ,
If I have 250 steps... I want 2nd step to be run .As per your answer I have to
give RESTART = PS 2
Then
Remaining 248 steps I have to give condition codes.. In this case
I have to give 248 cond code statements.It is a tedious process r8 ?
Is there any other way to do this ? Please help me

  Was this answer useful?  Yes

Sodadasi

  • Dec 15th, 2006
 

If you want to execute step100, Use RESTART = STEP100

Want to execute upto 100, use "//" after 100th step, then steps 101 to 110 will not execute.

  Was this answer useful?  Yes

ajay ajjur

  • Dec 19th, 2006
 

Hi buddy just nullify the steps from 100 till 110 using // after your 99th step as simple as that hope u r clear Regards AJAY

  Was this answer useful?  Yes

Ajay ajjur

  • Dec 19th, 2006
 

What you have said is exactly correct coding COND on 248 statements is really painful .... so wat u cud do is use restart for ur 2 step then after ur second step code a nullify in character that is code // after t end of ur second step so the remaining steps after your second step will never be executed. only the second step will execute any queries plz reply back regards AJAY

  Was this answer useful?  Yes

Sriniz Kumar

  • Feb 22nd, 2007
 

U may code the jobcard like this,//jobname JOB (accinfo),"jobname", RESTART=STEP100,COND=(0,LT,STEP100)Try it out. Let me know if u need complete code for this...

  Was this answer useful?  Yes

Sriniz Kumar

  • Feb 22nd, 2007
 

If u want to execute a any step inbetween some of the steps. U can use the combination of RESTART and COND parameter.Ex: My job has 100 steps, for some reasons i want to execute only 50th step, then i can code the job statement like this, //XXXXXX JOB (xxxx),"XXXXX",RESTART=STEP50,COND=(0,LT,STEP50)so u no need to alter the JCL steps i mean we can avoid coding // null statement after 50th statement

  Was this answer useful?  Yes

abinand shetty

  • Aug 11th, 2007
 

Use iebedit
ie
//idname job notify--------
//step1   exec pgm=iebedit
//sysprint dd sysout=*
//sysut1 dd dsn=myjob.name(mem),disp=shr         {ie   member where ur job is there}
//sysut2 dd sysout=(*,intrdr)
//sysin dd *
edit start=jobname,type=include,stepname=(100,110)

Only step no 100th and 110th will be executed  
Instead of include you can use exclude also.

  Was this answer useful?  Yes

tanu

  • Aug 27th, 2007
 

restart=procstep.stepname

  Was this answer useful?  Yes

Siranjeevi M

  • Oct 28th, 2007
 

For compare the datasets, You can use 3.3 ISPF option or
IEBCOMPR Utility. You can compare ps to ps, pds to pds and pds member to ps also.

  Was this answer useful?  Yes

rabellar82

  • Oct 13th, 2010
 

Hi If i have 250 steps... I want 2nd step to be run .As per your answer i have to give RESTART PS 2 Then Remaing 248 steps i have to give condition codes.. In this case I have to give 248 cond code statements.It is a tedious process r8 ? Is there any other way to do this ? Please help me

For the above question :
We can put the remaining 248 steps in a IF condition as shown

//STEP2 EXEC .....
.
.
.
//IF STEP2 NOT RUN
//STEP3 EXEC....
...
...
...
//STEP250 EXEC....
//END-IF

  Was this answer useful?  Yes

Rudrax

  • Mar 9th, 2012
 

One simple way to execute the 100th step only is to use the utility IEBEDIT.Syntax is as follows:
.......

Code
  1. //SYSIN DD *

  2.   EDIT START=<user id>,TYPE=INCLUDE,STEPNAME=(STEP=100)

  3. //

  Was this answer useful?  Yes

Sujith

  • Mar 22nd, 2012
 

If u dont want 99 steps and want only step100 (and remaining if its not last step) to execute give in job card of JCL as RESTART.PROCNAME=STEP100. This will automatically skip 99 steps and start the PROC from 100th step

  Was this answer useful?  Yes

Natrayan

  • Mar 5th, 2013
 

Using IEBEDIT utility to run a particular step with out use of COND Parameter

  Was this answer useful?  Yes

MAdav

  • Jul 2nd, 2013
 

RESTART=PROCNAME.STEPNAME,COND=(0,LE)

  Was this answer useful?  Yes

Niraj Kumar

  • Jul 11th, 2013
 

If the order of the step is STEP100,STEP99....then we will use the Cond=(0,EQ) in the job card......

But if the order is Step1,Step2.....Step100....then we will use the restart parameter as Restart=Step100.

  Was this answer useful?  Yes

PRERNA

  • Jun 9th, 2014
 

Need completed ode for this.Please provide the same.

  Was this answer useful?  Yes

lenin

  • Aug 20th, 2014
 

You can use the below code to execute only the step100

Code
  1. //step1 exec pgm=IEBEDIT

  2. //sysut1 dd dsn=inputjcl(jcl1),disp=shr

  3. //sysut2 dd sysout=(*,intrdr)

  4. //sysin dd *

  5.   Edit type=include,stepname=(step100)

  6. /*




-Here Jcl1 is a member where the original job resides from step 1 to step 110,

-inputjcl is a PDS name where the jcl1 resides
After executing the above code, you can see only the execution of step100

  Was this answer useful?  Yes

Srinivas Polepalli

  • Sep 2nd, 2014
 

Its verify simple dont make it too complicate.
//Jobname job class=a,msgclass=a,msglevel(1,1),RESTART = STEP100.

Here in the above jobcard we have given as restart - step100 which will directly execute only the step100.

  Was this answer useful?  Yes

madhu

  • Nov 7th, 2014
 

By using restart parameter we execute the program
syntax:userid.grp.type restart=step100

  Was this answer useful?  Yes

bharath

  • Jan 11th, 2015
 

Hi Manoj,
Did u found an answer for that?

  Was this answer useful?  Yes

Changappa

  • Feb 26th, 2015
 

We can use IEBEDIT utility to execute a particular step.

  Was this answer useful?  Yes

Ravi kumar Singara

  • Mar 9th, 2015
 

There is two more options to execute only 100 step . 1) we can nellify the all first 99 steps (comment out) then only 100 step will execute. 2) Restart = step 100 in job card

  Was this answer useful?  Yes

lenin

  • May 11th, 2015
 

here LT means Lessthan,
LT Replace with LE

  Was this answer useful?  Yes

Ranjith Kumar Reddy.P

  • May 27th, 2015
 

we can use IEBEDIT UTILITY and the syntax is
" edit type=include,stepname=(stepname)"

here step name in the "()" indicates the step which is to be executed

  Was this answer useful?  Yes

Amit Dass

  • Jun 25th, 2015
 

First we have to use restart parameter i.e. in Job statement Restart=Step100

Code
  1. first we have to use restart parameter i.e. in Job statement Restart=Step100

  2.  

  3. Step1 Exec

  4. ..

  5. Step99 Exec

  6. Step100

  7. LabelIF  IF(Step100.RC = 0 & Step100.RC <>0) Then

  8. Step101

  9. ..

  10. ..

  11. Step110 Exec

  12. ENDIF

  Was this answer useful?  Yes

sai prasad

  • Dec 17th, 2015
 

You can do it in 2 ways
1)by using restart parameter
ex:in job card restart=step100
2)by using IEBEDIT
//SHRDV08A JOB NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=SHRDV08.SAI5.PS(INPUT FILE)
//SYSUT2 DD DSN=*,INTRDR
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP100)
/*

  Was this answer useful?  Yes

Deepika

  • May 6th, 2016
 

I think i can use in step no.100.
Cond=only..because priror step abends

  Was this answer useful?  Yes

Tridip Sarma

  • Aug 3rd, 2016
 

Please use IEBEDIT utility

  Was this answer useful?  Yes

Priya

  • Sep 14th, 2016
 

You can use restart option RESTART=100thStep-Name

  Was this answer useful?  Yes

Indra kumar patle

  • May 17th, 2017
 

Restart the job with step=step100

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions