View previous topic :: View next topic
|
Author |
Message |
subhashini.alladi
New User
Joined: 26 Jul 2005 Posts: 1
|
|
|
|
how can we execute particular set of steps like step8 to step12 |
|
Back to top |
|
|
alamelu
New User
Joined: 18 Jul 2005 Posts: 15
|
|
|
|
Can u clearly explain what is ur requirement saying some examples |
|
Back to top |
|
|
shobam
New User
Joined: 18 Jul 2005 Posts: 34 Location: CN
|
|
|
|
By specifying RESTART=STEP8 in the JOB statement , the execution will start from STEP8.
And by overriding the COND parameter of the steps following the STEP12 using
//STEP001 EXEC procname,COND.STEP13=(0,LE),COND.STEP14(0,LE).....
you can stop the execution till STEP12.
Please correct me If I am wrong. |
|
Back to top |
|
|
alamelu
New User
Joined: 18 Jul 2005 Posts: 15
|
|
|
|
Hi Shobam ,
you have been telling like u r going to restart the job from Step 8 but then
even if u give condition for the steps after step12 (i.e step13 ,step14,etc) only based on the return code of the previous steps alone steps13 ,steps 14 are going to get executed and how are u saying that u can stop the Execution Step8 to step12 . I could n't understand ur point.
Alamelu |
|
Back to top |
|
|
thanooz
New User
Joined: 28 Jun 2005 Posts: 99
|
|
|
|
hai
alamelu
you can use iebedit
//editstep exec pgm=iebedit
//sysprint dd sysout=*
//sysut1 dd dsn=inputdataset
//sysut2 dd sysout=(b,intrdr)
//sysin dd *
edit start=jobname,type=include,stepname=(step8-step12)
/*
//
thanooz |
|
Back to top |
|
|
harinatha
New User
Joined: 24 Jul 2005 Posts: 28
|
|
|
|
Hi Thanooz,
Can u explain following these 4 statements in the above given JCL
//sysut1 dd dsn=inputdataset
//sysut2 dd sysout=(b,intrdr)
//sysin dd *
edit start=jobname,type=include,stepname=(step8-step12)
Thanks & Regards,
Hari. |
|
Back to top |
|
|
Prandip
New User
Joined: 04 Mar 2005 Posts: 84 Location: In my tiny cubicle ...
|
|
|
|
SYSUT1: Defines a sequential input data set on a card reader, tape volume, or direct access device.
SYSUT2: Defines a sequential output data set on a card punch, printer, tape volume, or direct access device. In the example, indicates the JES Internal Reader.
SYSIN: Defines the control data set.
See here for more info.: publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1u104/5.2.1?SHELF=&DT=19990113105507&CASE=
edit start=jobname,type=include,stepname=(step8-step12):
IEBEDIT uses only one utility control statement, EDIT. Continuation requirements for the statement are described in "Continuing Utility Control Statements" in topic 1.4.2.1.
You can use the EDIT statement to indicate which step or steps of a specified job in the input data set you want included in the output data set. Any number of EDIT statements can be included in an operation. Thus, you can create a data set with any number of job steps in one operation.
EDIT statements must be included in the same order as the input jobs that they represent. You can copy the entire input data set by omitting the EDIT statement.
The syntax of the EDIT statement is:
[label] EDIT [START=jobname]
[,TYPE={POSITION|INCLUDE|EXCLUDE}]
[,STEPNAME=(namelist)]
[,NOPRINT]
where:
START=jobname
specifies the name of the input job to which the EDIT statement applies. (Each EDIT statement must apply to a separate job.) If START is specified without TYPE and STEPNAME, the JOB statement and all job steps for the specified job are included in the output.
Default: If START is omitted and only one EDIT statement is provided, the first job encountered in the input data set is processed. If START is omitted from an EDIT statement other than the first statement, processing continues with the next JOB statement found in the input data set.
TYPE={POSITION|INCLUDE|EXCLUDE}
specifies the contents of the output data set. These values can be coded:
POSITION
specifies that the output is to consist of a JOB statement, the job step specified in the STEPNAME parameter, and all steps that follow that job step. All job steps preceding the specified step are omitted from the operation. POSITION is the default.
INCLUDE
specifies that the output data set is to contain a JOB statement and all job steps specified in the STEPNAME parameter.
EXCLUDE
specifies that the output data set is to contain a JOB statement and all job steps belonging to the job except those steps specified in the STEPNAME parameter.
STEPNAME=(namelist)
specifies the names of the job steps that you want to process.
Namelist can be a single job step name, a list of step names separated by commas, or a sequential range of steps separated by a hyphen (for example, STEPA-STEPE). Any combination of these may be used in one namelist. If more than one step name is specified, the entire namelist must be enclosed in parentheses.
When coded with TYPE=POSITION, STEPNAME specifies the first job step to be placed in the output data set. Job steps preceding this step are not copied to the output data set.
When coded with TYPE=INCLUDE or TYPE=EXCLUDE, STEPNAME specifies the names of job steps that are to be included in or excluded from the operation. For example, STEPNAME=(STEPA,STEPF-STEPL,STEPZ) indicates that job steps STEPA, STEPF through STEPL, and STEPZ are to be included in or excluded from the operation.
If STEPNAME is omitted, the entire input job whose name is specified on the EDIT statement is copied. If no job name is specified, the first job encountered is processed.
NOPRINT
specifies that the message data set is not to include a listing of the output data set.
Default: The resultant output is listed in the message data set.
See here for more info.: publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1u104/5.2.2?SHELF=&DT=19990113105507&CASE= |
|
Back to top |
|
|
shobam
New User
Joined: 18 Jul 2005 Posts: 34 Location: CN
|
|
|
|
Quote: |
how can we execute particular set of steps like step8 to step12 |
My reply was to execute STEP8 to STEP12 alone.
Since the COND parameter of STEP13... is been overrided with the value (0,LE) , so STEP13 wont execute whatever be the return code of previous steps that is STEP12. Because the COND=(0,LE) will return true for any return code value.
Please correct me If I am wrong. |
|
Back to top |
|
|
pbgunasekar
New User
Joined: 28 May 2005 Posts: 26 Location: Chennai
|
|
|
|
hi ,
you can do like this ..Restart the job with Step8 after step12 give //(null) statement..
If wrong pls intimate me...
yours
gunsekar |
|
Back to top |
|
|
sridevi1981
New User
Joined: 27 Jul 2005 Posts: 6
|
|
|
|
Hi All,
I tried this one but i'm getting message as follows
HAS A NONSTANDARD DATA SET NAME
AND IS NOT ELIGIBLE TO BE SMS-MANAGED
I have used the following code
//STEP1 EXEC PGM=IEBEDIT
//SYSUT1 DD DSN='TI111GK.JCLLIB.PERSONAL(IEBREC)',
// UNIT=(TWORK,4),
// SPACE=(CYL,(5,5),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0),
// DISP=(NEW,KEEP,KEEP)
//SYSUT2 DD SYSOUT=(B,INTRDR)
//SYSOUT DD SYSOUT=X
//SYSPRINT DD SYSOUT=X
//SYSIN DD *
EDIT START=OUTREC,TYPE=INCLUDE,STEPNAME=(STEP3-STEP4)
I Have doubt on this what exactly i ahve to use in SYSUT1.
Please correct me.
Thank |
|
Back to top |
|
|
thanooz
New User
Joined: 28 Jun 2005 Posts: 99
|
|
|
|
hi sridevi
i have seen your logic in sysut1 you have to give input data set name that means where the step3-step4 are writen.but in your jcl
disp=(new,keep,keep) mens it is new file it is not having any thing i think
then check it and give properly.
thanooz |
|
Back to top |
|
|
mainframesguru
New User
Joined: 24 Jun 2005 Posts: 36 Location: Hyderabad
|
|
|
|
Hi Sridevi,
Check the following piece of code:
This code is successfully executed, I am giving generic names instead of Original Names of Datasets.
//JOBNAME JOB CLASS=I,MSGCLASS=X,
// MSGLEVEL=(1,1),NOTIFY=&SYSUID
//
//*THIS STEP IS TO EXECUTE A PARTICULAR STEP OF A JOB
//
//STEP0001 EXEC PGM=IEBEDIT
//SYSUT1 DD DISP=SHR,DSN=JCL-PDS(JCL-MEMBER) <== ENTER PDS & MEMBER
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DATA <== ENTER JCL-STEPNAME
EDIT TYPE=INCLUDE,STEPNAME=(JCL-STEPNAME)
/*
JCL-PDS : THE PDS THAT HAS JCL STATEMENTS
JCL-MEMBER : MEMBER THAT HAS JCL STATEMENTS FOR EXECUTION
JCL-STEPNAME : STEPS THAT YOU WANT TO EXECUTE
If you have any more doubts about this, revert back.
Thanks & Regards
Vamshi
ICC-ISH. |
|
Back to top |
|
|
sridevi1981
New User
Joined: 27 Jul 2005 Posts: 6
|
|
|
|
Hi Vamsi,
Thank u very much for reply.
I have tried again but i'm getting error as follows
SYSUT1 - DATA SET NOT FOUND
I have used the following code
//STEP1 EXEC PGM=IEBEDIT
//SYSUT1 DD DSN='TI111GK.JCLLIB.PERSONAL(OUTREC)',DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSOUT DD SYSOUT=X
//SYSPRINT DD SYSOUT=X
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP3-STEP4)
/*
//
Please suggest me how to use this.
Thanks,
Sridevi |
|
Back to top |
|
|
sridevi1981
New User
Joined: 27 Jul 2005 Posts: 6
|
|
|
|
Hi Vamsi,
Thank u very much for reply.
I have tried again but i'm getting error as follows
SYSUT1 - DATA SET NOT FOUND
I have used the following code
//STEP1 EXEC PGM=IEBEDIT
//SYSUT1 DD DSN='TI111GK.JCLLIB.PERSONAL(OUTREC)',DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSOUT DD SYSOUT=X
//SYSPRINT DD SYSOUT=X
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP3-STEP4)
/*
//
Please suggest me how to use this.
Thanks,
Sridevi |
|
Back to top |
|
|
sridevi1981
New User
Joined: 27 Jul 2005 Posts: 6
|
|
|
|
Hi Vamsi,
Thank u very much for reply.
I have tried again but i'm getting error as follows
SYSUT1 - DATA SET NOT FOUND
I have used the following code
//STEP1 EXEC PGM=IEBEDIT
//SYSUT1 DD DSN='TI111GK.JCLLIB.PERSONAL(OUTREC)',DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSOUT DD SYSOUT=X
//SYSPRINT DD SYSOUT=X
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP3-STEP4)
/*
//
Please suggest me how to use this.
Thanks,
Sridevi |
|
Back to top |
|
|
sridevi1981
New User
Joined: 27 Jul 2005 Posts: 6
|
|
|
|
Hi Vamsi,
Thank u very much for reply.
I have tried again but i'm getting error as follows
SYSUT1 - DATA SET NOT FOUND
I have used the following code
//STEP1 EXEC PGM=IEBEDIT
//SYSUT1 DD DSN='TI111GK.JCLLIB.PERSONAL(OUTREC)',DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSOUT DD SYSOUT=X
//SYSPRINT DD SYSOUT=X
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP3-STEP4)
/*
//
Please suggest me how to use this.
Thanks,
Sridevi |
|
Back to top |
|
|
Prandip
New User
Joined: 04 Mar 2005 Posts: 84 Location: In my tiny cubicle ...
|
|
|
|
sridevi1981 wrote: |
I have tried again but i'm getting error as follows
SYSUT1 - DATA SET NOT FOUND |
Datasets in JCL are NOT enclosed with quotes. |
|
Back to top |
|
|
sridevi1981
New User
Joined: 27 Jul 2005 Posts: 6
|
|
|
|
Hi Pradip,
That u very much.
Now i got.
Thanks,
Sridevi |
|
Back to top |
|
|
thanooz
New User
Joined: 28 Jun 2005 Posts: 99
|
|
|
|
hi
sridevi you have have given a some name in jcl in sysut1.
'TI111GK.JCLLIB.PERSONAL(OUTREC)'-it is already created or new one
if it is new one it is not work properly.If it is already created and it is having the steps what you have mentioned then only it works.
SYSUT1-in dsn you have to give input data set name.
thanks's
thanooz |
|
Back to top |
|
|
mainframesguru
New User
Joined: 24 Jun 2005 Posts: 36 Location: Hyderabad
|
|
|
|
Hi Sridevi,
Please remove quotes over the PDS(member) in SYSUT1 and try executing. I am sure, it works. Otherwise revert back.
//SYSUT1 DD DSN='TI111GK.JCLLIB.PERSONAL(OUTREC)',DISP=SHR
Thanks And Regards
Vamshi
ICC-ISH |
|
Back to top |
|
|
mainframesguru
New User
Joined: 24 Jun 2005 Posts: 36 Location: Hyderabad
|
|
|
|
Hi Sridevi,
PLease take out Quotes from Dataset Name and try running the JCL.
Thanks
Vamshi |
|
Back to top |
|
|
ksivapradeep
New User
Joined: 30 Jul 2004 Posts: 95
|
|
|
|
Hi sredevi,
No need of all those jcl's and IEBEDIT utility, just put 2 lables in the step8 and end of step12 the issue the command SUB .A .B in the command line. where .A .B are the two lables which u put for step8 and step12
00.a01 //step8
.
.
.
000009 //step12
000010 --------
00.b11 --------
000012 //
try this and let me know. we can use IEBEDIT also its's not wront but we will use that when we need to execute entermediate steps. i think your doubt cleared now
regards,
pradeep |
|
Back to top |
|
|
Anbudan
New User
Joined: 07 Sep 2005 Posts: 26 Location: Germany
|
|
|
|
Hi subhashini.alladi
pbgunasekar solution is a generally we use. That will work fine.
i.e
i)on JOB, restart = Step08
ii)Step 12 will be ended by //
Anbudan |
|
Back to top |
|
|
|