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

Execute 6th, 8th and 10th steps only. Without using Restart


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Husna

New User


Joined: 02 Jun 2006
Posts: 49

PostPosted: Mon Jul 17, 2006 10:37 am
Reply with quote

Hi all,

I have 10 Steps.... I need to execute 6th, 8th and 10th steps only. Without using Restart Parameter and null statements? How can I do the same using COND parameter? Any one please let me know the solution.

I have 100 Steps... I need to execute 2nd and 4th step and the I need to execute 52nd 67th step (Without using null statements). How can I do the same?

Awaiting your reply.
Back to top
View user's profile Send private message
hycind

New User


Joined: 17 Nov 2005
Posts: 1

PostPosted: Mon Jul 17, 2006 12:34 pm
Reply with quote

A simple thing I can think of is to place all the steps to be skipped in an IF block.
something like this...

Code:
//SKIPSTEP  IF  (FALSE) THEN
//STEP01
....
//STEP05
//            ENDIF
//STEP06 ....
Back to top
View user's profile Send private message
ramk

New User


Joined: 01 Apr 2005
Posts: 2

PostPosted: Wed Aug 23, 2006 11:36 am
Reply with quote

Thank you Parikshit . .
i too thought the same . .
and here is a better solution i think

solution . . .

This can be done by using the predefined utilities
IEBEDIT & INTRDR
this is the JCL

// JOB . . .
//STEP1 EXEC PGM=IEBEDIT
//SYSUT1 DD DSN=A.PDS(M1),DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=STEP20-STEP30
/*


WE CAN ALSO EXECUTE ONLY REQUIRED STEPS

//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=STEP3,STEP50,STEP20
/*


IN THE EDIT TYPE WE CAN USE "EXCLUDE" ALSO FOR EXCLUDING THE REQUIRED STEPS FROM EXECUTION

//SYSIN DD *
EDIT TYPE=EXCLUDE,STEPNAME=STEP100,STEP20 (OR) STEP20-STEP30
/*
Back to top
View user's profile Send private message
prakash_pj

New User


Joined: 14 Jul 2006
Posts: 1

PostPosted: Wed Aug 23, 2006 12:12 pm
Reply with quote

use a ibm supplied utility program named iebedit , in iebedit use specify the steps name which can only be executed or omitted
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
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
No new posts Evaluate variable to execute a jcl step JCL & VSAM 3
Search our Forums:

Back to Top