Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
i want excute only 3rd step in the proc

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
rameshbabu
Warnings : 1

New User


Joined: 23 May 2005
Posts: 27

PostPosted: Wed Jun 08, 2005 11:29 am    Post subject: i want excute only 3rd step in the proc
Reply with quote

hi plse clarify my doubt i am having 100 steps in a proc i want excute only 3 rd remaining(from 1 to 2 and 4 to 100) and all no need we can use cond
=(0,le) in jobcard and restart=procname.stepname is it ok ? or any other suitable solution is there ?
Back to top
View user's profile Send private message
References
lucky

New User


Joined: 01 Jun 2005
Posts: 12
Location: Croatia

PostPosted: Wed Jun 08, 2005 12:37 pm    Post subject: Re: i want excute only 3rd step in the proc
Reply with quote

I was on a JCL course recently and I asked the instructor the same question. He's response was the same, to use restart and break in the next step. I would rather use "//" not conditionals.

With COND (0,LE) you could have a problem if the previous job didn't end with 0, or if there are more than 4 steps in the JCL.
Back to top
View user's profile Send private message
Deepa.m
Warnings : 1

Active User


Joined: 28 Apr 2005
Posts: 88

PostPosted: Wed Jun 08, 2005 12:46 pm    Post subject:
Reply with quote

you can introduce a null statment (//) at the end of step3 and restart from
step 3.

Can we use a COND in jobcard? My understanding is Cond can be given along with EXEC statement.
Back to top
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 110
Location: Cincinnati Ohio

PostPosted: Wed Jun 08, 2005 1:19 pm    Post subject:
Reply with quote

Hi Deepa,

Yes, condition parameter can be given in the jobcard along with the
EXEC statements mentioned in steps to follow.

let me know in case of any concerns.

regards,
David.
Back to top
View user's profile Send private message
frame_kan

New User


Joined: 03 Jun 2005
Posts: 5

PostPosted: Thu Jun 09, 2005 4:04 pm    Post subject: Re: i want excute only 3rd step in the proc
Reply with quote

Can anyone please give example of null statement and restart for this problem
Back to top
View user's profile Send private message
MGIndaco

Moderator


Joined: 10 Mar 2005
Posts: 478
Location: Milan, Italy

PostPosted: Thu Jun 09, 2005 7:50 pm    Post subject:
Reply with quote

Try to see this post:
http://ibmmainframes.com/viewtopic.php?t=1886&highlight=sub
Back to top
View user's profile Send private message
sridhard

New User


Joined: 02 Jun 2005
Posts: 8
Location: Chennai

PostPosted: Thu Jun 09, 2005 8:59 pm    Post subject: Re: i want excute only 3rd step in the proc
Reply with quote

Hi,

Restart the job from the 5th step and override the condition parameter for the successive steps of the proc, in the job.

The condition may look like COND.STEP6 =(0,LE)

Thanks
Sridhar
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1