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
 

 

how can we execute particular set of steps like step8 to ste
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
subhashini.alladi

New User


Joined: 26 Jul 2005
Posts: 1

PostPosted: Tue Jul 26, 2005 1:32 pm    Post subject: how can we execute particular set of steps like step8 to ste
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    Post subject:
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    Post subject: Re: how can we execute particular set of steps
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    Post subject:
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    Post subject:
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    Post subject: Re: how can we execute particular set of steps like step8 to
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: 85
Location: In my tiny cubicle ...

PostPosted: Wed Jul 27, 2005 12:29 am    Post subject: Re: how can we execute particular set of steps like step8 to
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.: http://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.: http://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    Post subject:
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    Post subject: Re: how can we execute particular set of steps like step8 to
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    Post subject: Re: how can we execute particular set of steps like step8 to
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    Post subject:
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    Post subject:
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    Post subject: Re: how can we execute particular set of steps like step8 to
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    Post subject: Re: how can we execute particular set of steps like step8 to
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    Post subject: Re: how can we execute particular set of steps like step8 to
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    Post subject: Re: how can we execute particular set of steps like step8 to
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: 85
Location: In my tiny cubicle ...

PostPosted: Mon Aug 01, 2005 4:07 pm    Post subject: Re: how can we execute particular set of steps like step8 to
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    Post subject: Re: how can we execute particular set of steps like step8 to
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    Post subject:
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    Post subject: Re: how can we execute particular set of steps like step8 to
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
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
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts CEXEC not able to execute if no SLINE... boyti ko CLIST & REXX 2 Wed Apr 13, 2016 4:31 pm
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 CALL MACRO EXECUTE FORM - Setting the... sudarshan.srivathsav PL/I & Assembler 7 Tue Feb 09, 2016 10:32 pm


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