Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Run the job to Execute the Steps in the reverse order

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Run the job to Execute the Steps in the reverse order
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    Post subject:
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    Post subject: Re: I have a question about the JCL Job submission...
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    Post subject: Re: I have a question about the JCL Job submission...
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    Post subject:
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: 85
Location: In my tiny cubicle ...

PostPosted: Mon Mar 14, 2005 6:53 pm    Post subject: Re: I have a question about the JCL Job submission...
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Order BY AND Index Nileshkul DB2 2 Sat Dec 31, 2016 6:33 pm
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts RFE: Additional compound operators fo... prino PL/I & Assembler 1 Wed Jun 08, 2016 3:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us