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
 

 

Selective execution of Steps in a JCL containing N no. of st
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Selective execution of Steps in a JCL containing N no. of st
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 08, 2009 11:08 am    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 08, 2009 11:18 am    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 08, 2009 11:23 am    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 08, 2009 11:37 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Jul 09, 2009 8:37 am    Post subject:
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    Post subject:
Reply with quote

Hi Scherrer,

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

Site Director


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

PostPosted: Thu Jul 09, 2009 9:02 am    Post subject: Reply to: Selective execution of Steps in a JCL containing N
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 09, 2009 11:16 am    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 09, 2009 12:41 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Jul 09, 2009 12:55 pm    Post subject:
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    Post subject: Reply to: Selective execution of Steps in a JCL containing N
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    Post subject: Reply to: Selective execution of Steps in a JCL containing N
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

Site Director


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

PostPosted: Fri Jul 10, 2009 8:12 am    Post subject:
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts output DDname JESMSGLG job during exe... italo_pm TSO/ISPF 16 Tue Jun 21, 2016 11:13 am
This topic is locked: you cannot edit posts or make replies. Executing JCL specific steps at speci... Shruti Takkar JCL & VSAM 6 Mon Feb 22, 2016 12:39 pm
No new posts How steps execute in Job in case of a... richiewalia JCL & VSAM 4 Tue Jan 12, 2016 12:34 pm
No new posts Can a DB2 insert trigger execution of... TS70363 DB2 6 Tue Nov 24, 2015 10:44 pm


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