View previous topic :: View next topic
|
Author |
Message |
VivekKhanna
New User
Joined: 09 Feb 2009 Posts: 57 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Steps in a batch job or steps within a procedure. |
|
Back to top |
|
|
VivekKhanna
New User
Joined: 09 Feb 2009 Posts: 57 Location: India
|
|
|
|
If you could help me with both the ways, that will be of gr8 help.
Presently I am working with Batch |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Use IEBEDIT for instream JCL,
Tough luck for the PROC, that's a load of hard work. |
|
Back to top |
|
|
VivekKhanna
New User
Joined: 09 Feb 2009 Posts: 57 Location: India
|
|
|
|
could you provide with some example. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
But of course,
Click HERE. |
|
Back to top |
|
|
VivekKhanna
New User
Joined: 09 Feb 2009 Posts: 57 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Try it and see |
|
Back to top |
|
|
VivekKhanna
New User
Joined: 09 Feb 2009 Posts: 57 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
EIBEDIT utility is not available. |
Not spelled that way. . .
Try IEBEDIT - which is installed on every system. |
|
Back to top |
|
|
VivekKhanna
New User
Joined: 09 Feb 2009 Posts: 57 Location: India
|
|
|
|
Hi Scherrer,
Thanks for the correction. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome - good luck
d |
|
Back to top |
|
|
VivekKhanna
New User
Joined: 09 Feb 2009 Posts: 57 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Well, you have told us what you did, but not what happened.
What is your problem here ? |
|
Back to top |
|
|
VivekKhanna
New User
Joined: 09 Feb 2009 Posts: 57 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
Ketan Varhade
Active User
Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
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 |
|
|
VivekKhanna
New User
Joined: 09 Feb 2009 Posts: 57 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
VivekKhanna
New User
Joined: 09 Feb 2009 Posts: 57 Location: India
|
|
|
|
Hi Scherrer
This question arises after going thru the manuals only. As there is no clear description abt that. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
VivekKhanna
New User
Joined: 09 Feb 2009 Posts: 57 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
Back to top |
|
|
VivekKhanna
New User
Joined: 09 Feb 2009 Posts: 57 Location: India
|
|
|
|
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 |
|
|
|