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

Selective execution of Steps in a JCL containing N no. of st


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

New User


Joined: 09 Feb 2009
Posts: 57
Location: India

PostPosted: Wed Jul 08, 2009 11:05 am
Reply with quote

I want to execute a selective no. of steps of a JCL say, Step11, Step13, Step46, Step53 & Ste77 of a JCL containg around 93 steps.

Could you please guide me how to get them executed.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 08, 2009 11:08 am
Reply with quote

Steps in a batch job or steps within a procedure.
Back to top
View user's profile Send private message
VivekKhanna

New User


Joined: 09 Feb 2009
Posts: 57
Location: India

PostPosted: Wed Jul 08, 2009 11:14 am
Reply with quote

If you could help me with both the ways, that will be of gr8 help.
Presently I am working with Batch
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 08, 2009 11:18 am
Reply with quote

Use IEBEDIT for instream JCL,

Tough luck for the PROC, that's a load of hard work.
Back to top
View user's profile Send private message
VivekKhanna

New User


Joined: 09 Feb 2009
Posts: 57
Location: India

PostPosted: Wed Jul 08, 2009 11:19 am
Reply with quote

could you provide with some example.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 08, 2009 11:23 am
Reply with quote

But of course,

Click HERE.
Back to top
View user's profile Send private message
VivekKhanna

New User


Joined: 09 Feb 2009
Posts: 57
Location: India

PostPosted: Wed Jul 08, 2009 11:33 am
Reply with quote

Thanks a lot, bro!!!!!

That solves the purpose for a batch, but about PROCS? Can we implement is using the same way by specifying the scope like PROCNAME.STEPNAME
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 08, 2009 11:37 am
Reply with quote

Try it and see icon_lol.gif
Back to top
View user's profile Send private message
VivekKhanna

New User


Joined: 09 Feb 2009
Posts: 57
Location: India

PostPosted: Thu Jul 09, 2009 8:24 am
Reply with quote

hi expat,

The problem that I am facing is that, EIBEDIT utility is not available.
Is there any other way to perform the execution of selective steps out of a JCL.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jul 09, 2009 8:37 am
Reply with quote

Hello,

Quote:
EIBEDIT utility is not available.
Not spelled that way. . . icon_neutral.gif

Try IEBEDIT - which is installed on every system.
Back to top
View user's profile Send private message
VivekKhanna

New User


Joined: 09 Feb 2009
Posts: 57
Location: India

PostPosted: Thu Jul 09, 2009 8:40 am
Reply with quote

Hi Scherrer,

Thanks for the correction.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jul 09, 2009 9:02 am
Reply with quote

You're welcome - good luck icon_smile.gif

d
Back to top
View user's profile Send private message
VivekKhanna

New User


Joined: 09 Feb 2009
Posts: 57
Location: India

PostPosted: Thu Jul 09, 2009 10:55 am
Reply with quote

Hi Scherrer,

I used the utility and it worked fine with the below mentioned code:

Code:


//USER1A  JOB (ZZZZZZZZ,ABCDE,AAASSSZZZZ),           
//     'XXXXX,X09-7',                                     
//     MSGLEVEL=(1,1),CLASS=1,MSGCLASS=T,NOTIFY=&SYSUID, 
//     PRTY=6                                             
//*                                                       
//* TESTING EIBEDIT UTILITY                               
//*                                                       
//STEP1    EXEC PGM=IEBEDIT                               
//SYSPRINT DD SYSOUT=*                                   
//SYSUT1   DD DSN=USER1.DEV.INSET,DISP=(OLD,KEEP)       
//*                                                       
//SYSUT2   DD SYSOUT=(A,INTRDR)                           
//*                                                       
//SYSIN    DD *                                           
           EDIT TYPE=INCLUDE,STEPNAME=SORT001             
/*



here USER1.DEV.INSET is a PS which contains the JCL from which I want to execute the selected step (SORT001 in this case)

Code:


//USER1B  JOB (ZZZZZZZZ,ABCDE,AAASSSZZZZ),                       
//     'XXXXX,X09-7',                                                 
//     MSGLEVEL=(1,1),CLASS=1,MSGCLASS=T,NOTIFY=&SYSUID,             
//     PRTY=6                                                         
//*  TEST STEP FOR EIBEDIT UTILITY                                   
//STEP010  EXEC PGM=IEFBR14,COND=(0,LT)                               
//DELETE01 DD DSN=USER1.DEV.RESULTS,                                 
//         DISP=(MOD,DELETE,DELETE),                                 
//         UNIT=(,,DEFER),SPACE=(0,0)                                 
//******************************************************         
//*     JCL TO COPY A GDG TO PS                                       
//******************************************************         
//SORT001  EXEC PGM=SORT                                             
//SYSOUT    DD  SYSOUT=*                                             
//SORTIN    DD  DSN=WXYZ.XXXXYYY.ZZZZXXXX.REPORT(0),DISP=SHR                                   
//SORTOUT   DD  DSN=USER1.DEV.RESULTS,                               
//          DISP=(NEW,CATLG,DELETE),                                 
//          DCB=*.SORTIN,                                           
//          AVGREC=K,SPACE=(TRK,(10,2))                             
//SYSIN     DD   *                                                   
  OPTION COPY                                                       
/*                                                                   
//                                                                 



My question is that can't we use any member of a PDS as input dataset (as in this case USER1.DEV.INSET is a PS). I tried using the following code in the master JCL and provided the PDS path in the SYSUT1:

Code:


//SYSIN    DD *                                           
           EDIT START=MEMNAME,TYPE=INCLUDE,STEPNAME=SORT001             
/*



Please suggest.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 09, 2009 11:16 am
Reply with quote

Well, you have told us what you did, but not what happened.

What is your problem here ?
Back to top
View user's profile Send private message
VivekKhanna

New User


Joined: 09 Feb 2009
Posts: 57
Location: India

PostPosted: Thu Jul 09, 2009 11:59 am
Reply with quote

hi expat,

The mentioned JCL ran fine, but when I tried with the last change for a member name in START parameter, it didn't worked at all. I got error code MAXCC=008 with erro msg:

Code:


           IEBEDIT LISTING                     PAGE 0001
IEB027I I/O ERROR          ,USER1A ,STEP1   ,E0D8,D,SYSUT1  ,GET   ,WRNG.LEN.RECORD.00000045000800,QSAM
IEB024I  8 WAS HIGHEST SEVERITY CODE

Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 09, 2009 12:41 pm
Reply with quote

And what do the error messages suggest to you.

What did it say in the manuals about the meaning of these messages and what actions to follow.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jul 09, 2009 12:55 pm
Reply with quote

You need to provide the PDS name along with member name in SYSUT1, something like below
Code:
//STEP002  EXEC PGM=IEBEDIT                     
//SYSUT1   DD DSN=HLQ.ANUJ.JCL(OUTREC),DISP=SHR 
//SYSUT2   DD SYSOUT=(*,INTRDR)                 
//SYSPRINT DD SYSOUT=*                           
//SYSIN    DD *                                 
  EDIT TYPE=INCLUDE,STEPNAME=(STEP005,STEP050)   
/*                                               
should work for you.

In above, HLQ.ANUJ.JCL is a PDS and member "OUTREC" has JCL from which I want to execute STEP005 and STEP050.
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Thu Jul 09, 2009 4:18 pm
Reply with quote

I think that you can use the step in the proc and then use cond parameters and then execute the particular step.

May this help you.

Regards
ketan Varhade
Back to top
View user's profile Send private message
VivekKhanna

New User


Joined: 09 Feb 2009
Posts: 57
Location: India

PostPosted: Fri Jul 10, 2009 7:35 am
Reply with quote

Hi Anuj,

That worked. Thanks.
There is one more thing I am wondering about is the START parameter in the SYSIN statement. As per my understanding, START parameter contains the JOB name whose steps need to be executed. But here, if we are executing multiple steps of Different jobs,like:

JOBNAME STEPNAME
JOBA STEP1, STEP2, STEP3
JOBB STEPA, STEPB

From the above statements, I want to execute STEP2 and STEP3 from JOBA and STEPA from JOBB. The SYSIN statement must be as follows:

Code:


//SYSIN   DD  *
              EDIT  START=JOBA,TYPE=EXCLUDE,STEPNAME=STEP1
              EDIT  START=JOBB,TYPE=INCLUDE,STEPNAME=STEPA
/*



In this case, what should be the Input DSN in Step SYSUT1
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 10, 2009 8:12 am
Reply with quote

Hello,

At the top of the page is a link to "IBM Manuals".

One of them is "IBM JCL Utilities Guide for DFSMS".

In that manual is the documentation for IEBEDIT including examples.
Back to top
View user's profile Send private message
VivekKhanna

New User


Joined: 09 Feb 2009
Posts: 57
Location: India

PostPosted: Fri Jul 10, 2009 8:24 am
Reply with quote

Hi Scherrer

This question arises after going thru the manuals only. As there is no clear description abt that.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 10, 2009 8:35 am
Reply with quote

Hello,

Is there some reason more than the IEBEDIT - "Copy Steps from Three Jobs" example is needed? It appears to be exactly what you want to do. . .

Maybe there is something i misunderstand?
Back to top
View user's profile Send private message
VivekKhanna

New User


Joined: 09 Feb 2009
Posts: 57
Location: India

PostPosted: Fri Jul 10, 2009 8:43 am
Reply with quote

Yeah, actually the thing is that I need to execute some steps from different JCLs for testing (some 5 JCLs are there). The restriction is that I don't have to execute the complete JCLs.
- One way that automatically comes to mind is to copy the steps from different JCLs and merge them into a single one and then submit that JCL. But that is a simple and old wayout, and nothing new to learn.

- IEBEDIT helped in learning in things and in new ways too.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 10, 2009 8:58 am
Reply with quote

Hello,

Quote:
But that is a simple and old wayout, and nothing new to learn.
IEBEDIT is also considered quite old. . .

It is largely there for backward compatibility - some places have used this for over 30 years icon_wink.gif
Back to top
View user's profile Send private message
VivekKhanna

New User


Joined: 09 Feb 2009
Posts: 57
Location: India

PostPosted: Fri Jul 10, 2009 9:07 am
Reply with quote

ok! I was considering the process of copying the steps into a new single JCL.

But considering my problem, no solution is provided.
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 Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts Selective extract of multi-record-typ... SYNCSORT 4
No new posts Parallel Sysplex - subprogram execution CICS 7
No new posts Prod parallel execution on mainframe ... CICS 1
Search our Forums:

Back to Top