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

how can we execute particular set of steps like step8 to ste


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

New User


Joined: 26 Jul 2005
Posts: 1

PostPosted: Tue Jul 26, 2005 1:32 pm
Reply with quote

how can we execute particular set of steps like step8 to step12
Back to top
View user's profile Send private message
alamelu

New User


Joined: 18 Jul 2005
Posts: 15

PostPosted: Tue Jul 26, 2005 1:40 pm
Reply with quote

Can u clearly explain what is ur requirement saying some examples
Back to top
View user's profile Send private message
shobam

New User


Joined: 18 Jul 2005
Posts: 34
Location: CN

PostPosted: Tue Jul 26, 2005 4:41 pm
Reply with quote

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
View user's profile Send private message
alamelu

New User


Joined: 18 Jul 2005
Posts: 15

PostPosted: Tue Jul 26, 2005 5:25 pm
Reply with quote

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
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Tue Jul 26, 2005 8:28 pm
Reply with quote

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
View user's profile Send private message
harinatha

New User


Joined: 24 Jul 2005
Posts: 28

PostPosted: Tue Jul 26, 2005 10:26 pm
Reply with quote

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
View user's profile Send private message
Prandip

New User


Joined: 04 Mar 2005
Posts: 84
Location: In my tiny cubicle ...

PostPosted: Wed Jul 27, 2005 12:29 am
Reply with quote

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
View user's profile Send private message
shobam

New User


Joined: 18 Jul 2005
Posts: 34
Location: CN

PostPosted: Wed Jul 27, 2005 10:29 am
Reply with quote

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
View user's profile Send private message
pbgunasekar

New User


Joined: 28 May 2005
Posts: 26
Location: Chennai

PostPosted: Wed Jul 27, 2005 1:05 pm
Reply with quote

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
View user's profile Send private message
sridevi1981

New User


Joined: 27 Jul 2005
Posts: 6

PostPosted: Wed Jul 27, 2005 3:12 pm
Reply with quote

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
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Wed Jul 27, 2005 5:56 pm
Reply with quote

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
View user's profile Send private message
mainframesguru

New User


Joined: 24 Jun 2005
Posts: 36
Location: Hyderabad

PostPosted: Sun Jul 31, 2005 4:13 pm
Reply with quote

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
View user's profile Send private message
sridevi1981

New User


Joined: 27 Jul 2005
Posts: 6

PostPosted: Mon Aug 01, 2005 4:00 pm
Reply with quote

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
View user's profile Send private message
sridevi1981

New User


Joined: 27 Jul 2005
Posts: 6

PostPosted: Mon Aug 01, 2005 4:00 pm
Reply with quote

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
View user's profile Send private message
sridevi1981

New User


Joined: 27 Jul 2005
Posts: 6

PostPosted: Mon Aug 01, 2005 4:01 pm
Reply with quote

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
View user's profile Send private message
sridevi1981

New User


Joined: 27 Jul 2005
Posts: 6

PostPosted: Mon Aug 01, 2005 4:01 pm
Reply with quote

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
View user's profile Send private message
Prandip

New User


Joined: 04 Mar 2005
Posts: 84
Location: In my tiny cubicle ...

PostPosted: Mon Aug 01, 2005 4:07 pm
Reply with quote

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
View user's profile Send private message
sridevi1981

New User


Joined: 27 Jul 2005
Posts: 6

PostPosted: Mon Aug 01, 2005 4:20 pm
Reply with quote

Hi Pradip,

That u very much.
Now i got.

Thanks,
Sridevi
Back to top
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Mon Aug 01, 2005 7:12 pm
Reply with quote

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
View user's profile Send private message
mainframesguru

New User


Joined: 24 Jun 2005
Posts: 36
Location: Hyderabad

PostPosted: Mon Aug 01, 2005 8:43 pm
Reply with quote

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
View user's profile Send private message
mainframesguru

New User


Joined: 24 Jun 2005
Posts: 36
Location: Hyderabad

PostPosted: Fri Sep 02, 2005 3:22 pm
Reply with quote

Hi Sridevi,

PLease take out Quotes from Dataset Name and try running the JCL.

Thanks
Vamshi
Back to top
View user's profile Send private message
ksivapradeep

New User


Joined: 30 Jul 2004
Posts: 95

PostPosted: Fri Sep 16, 2005 2:29 pm
Reply with quote

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
View user's profile Send private message
Anbudan

New User


Joined: 07 Sep 2005
Posts: 26
Location: Germany

PostPosted: Fri Sep 16, 2005 6:24 pm
Reply with quote

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
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

 


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