IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Run the job to Execute the Steps in the reverse order


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajeshreddy

New User


Joined: 14 Mar 2005
Posts: 2
Location: Bangalore

PostPosted: Mon Mar 14, 2005 10:04 am
Reply with quote

Hi,

Can anybody help me about this?

I have a job, which is having, lets say 10 steps.Can we run the job so that the steps are executed in the reverse order?

steps must be executed in the following order..10,9,8,7,6,....

thanks

Rajesh
Back to top
View user's profile Send private message
mainframemouli

New User


Joined: 01 Mar 2005
Posts: 52
Location: Mysore

PostPosted: Mon Mar 14, 2005 3:43 pm
Reply with quote

I don't know why you are experimenting with this things...

if u want step 10,9,8.... give those in that order whats in it.
I agree i don't have answer for this but if something which is very easily done why should we beat about the bush.

if you know the answer let me know...
Back to top
View user's profile Send private message
khannay2k

New User


Joined: 24 Feb 2005
Posts: 28
Location: Bangalore

PostPosted: Mon Mar 14, 2005 4:36 pm
Reply with quote

Hi Rajesh,

am not very sure, but still i feel like this can be done with DPRTY paramater which is available with the exec statement, still correct if you still find any.

Thanks & Regards,
Rajesh.M
Back to top
View user's profile Send private message
rajeshreddy

New User


Joined: 14 Mar 2005
Posts: 2
Location: Bangalore

PostPosted: Mon Mar 14, 2005 4:37 pm
Reply with quote

Hi Mouli,

I know this can be done easily by writing the steps in the reverse order. But if there are more steps involved, then writing all of them in the reverse order would be a problem. There should be a way out to solve this issue. is anybody aware of this?

Thanks

Rajesh
Back to top
View user's profile Send private message
mainframemouli

New User


Joined: 01 Mar 2005
Posts: 52
Location: Mysore

PostPosted: Mon Mar 14, 2005 6:21 pm
Reply with quote

I agree that this is a very strange question. However just as a mental exercise, I think you could do it this way:

If you had a 5 step proc executed within a job, you could execute the proc 5 times, the first time you'd code a restart for step 5, for each additional execution of the proc, you'd condition code out the appropriate steps.

Why you'd ever do this is beyond me, but what ever......
Back to top
View user's profile Send private message
Prandip

New User


Joined: 04 Mar 2005
Posts: 84
Location: In my tiny cubicle ...

PostPosted: Mon Mar 14, 2005 6:53 pm
Reply with quote

I was thinking that you might want to use the IEBEDIT utility to specify which steps to execute, but even IEBEDIT expects the steps to execute in sequential order, so it would only work if it was called 10 times, once for each step.
Back to top
View user's profile Send private message
narena

New User


Joined: 16 Mar 2005
Posts: 18

PostPosted: Wed Mar 16, 2005 3:38 pm
Reply with quote

I think...


With DPRTY we can sovle this problem. DPRTY is the one of the parameters of EXEC statement.

Syntax: DPRTY =(M,N) where M,N ranges 0-15

The value is calculated using the formula N*16+M

By assigining High priority value to last step, Next Hight value to next step.......... like that we can achieve this one. Try it.............
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Rotate partition-logical & physic... DB2 0
No new posts Fetch data from programs execute (dat... DB2 3
No new posts CA7 deleting files in steps after job... CA Products 4
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
Search our Forums:

Back to Top