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

How to make one step in JCL to Null step(IEFBR14)


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
muppanenidilip
Warnings : 1

New User


Joined: 06 Jun 2007
Posts: 5
Location: Bangalore

PostPosted: Thu Apr 21, 2011 12:37 pm
Reply with quote

Hi,

How to make one step in JCL to Null step(IEFBR14)? below is step shown.

//STEP01 EXEC BATCD45
//CBOCNTRL DD DSN=PCT.CBOCNTRL.INFILE,DISP=SHR
//TEMPDSN DD DUMMY
//SYSIN DD *
----
----
/*
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 21, 2011 12:46 pm
Reply with quote

With so much useful information given by you, it's very hard to know where to start.

1) Change the JCL,
2) If it's in a PROC - change the PROC

That's the only way it can be done

NOTE - Please remove your telephone number from your footnote
Back to top
View user's profile Send private message
muppanenidilip
Warnings : 1

New User


Joined: 06 Jun 2007
Posts: 5
Location: Bangalore

PostPosted: Thu Apr 21, 2011 12:54 pm
Reply with quote

Hi Expat,

Thanks for reply.

What needs to be change in JCL or PROC? I need to change the DISP parameter for deleting DSN or any other. Please guide me.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Apr 21, 2011 1:37 pm
Reply with quote

your turn again, Expat.
and remember to
  • follow the rules of Political Correctness
  • enjoy the feelings of Giving to a lost and wayward soul
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 21, 2011 1:40 pm
Reply with quote

If you explain EXACTLY what it is that you want to do

Why do you want to change a program to IEFBR14
What, if anything, do you want IEFBR14 to do

Is this instream JCL or a PROC
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Apr 21, 2011 1:50 pm
Reply with quote

//STEP01 EXEC BATCD45

looks like a proc Expat.

But what the hell why do i bother, its all your game.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Apr 21, 2011 2:23 pm
Reply with quote

You are showing a procedure, program is executed by PGM=pgmnme. You cannot override a program name in a procedure unles it is coded as a symbolic (&PGMNME). If you do not want the dataset to be affected then provide an override //stepname.CBOCNTRL DD DUMMY but as the DISP is SHR IEFBR14 will not affect it in any way - nor will job termination.
Back to top
View user's profile Send private message
muppanenidilip
Warnings : 1

New User


Joined: 06 Jun 2007
Posts: 5
Location: Bangalore

PostPosted: Thu Apr 21, 2011 3:10 pm
Reply with quote

Hi,

Thanks for your reply.

Its not an instream PROC. I need to disable the step01. that it. so, this change is fine or not as shown below.

//STEP01 EXEC IEFBR14
//CBOCNTRL DD DSN=PCT.CBOCNTRL.INFILE,DISP=SHR
//TEMPDSN DD DUMMY
//SYSIN DD *
----
----
/*


Thanks,
Dilip.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Thu Apr 21, 2011 3:49 pm
Reply with quote

The only chance that your JCL will work is if you have a PROC called IEFBR14 because that's what /STEP01 EXEC IEFBR14 is looking to do.
The //CBOCNTRL DD and other JCL cards will be appended to whatever's in that PROC.

You still haven't explained EXACTLY what it is you're trying to achieve. If you can just change the JCL, why not use //STEP01 EXEC PGM=IEFBR14 or, better still, just edit out the step.

Garry.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Apr 21, 2011 3:52 pm
Reply with quote

No - (1) because you do not have PGM=IEFBR14 so the interpreter will look for a procedure called IEFBR14 and (2) as I said before, you cannot override a program in a procedure unless it is symbolically defined. If you do not have a procedure then just delete the step before submission. If you normally need the step then cancel the edit session after submitting the job and any changes will be backed out.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Apr 21, 2011 4:02 pm
Reply with quote

There must be about a million different ways to not run a step.
Unless you have a further requirement, why go to the bother of changing it to IEFBR14?

Delete in the editor is pretty effective, as has been suggested. If you think you might want to sometime go back to the original, just make a copy of it. Much less error-prone than changing, and then changing back.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Apr 21, 2011 4:09 pm
Reply with quote

Quote:
I need to disable the step01
Look carefullly at a job execution to find the JCL expansion (it'll have XX instead of //). Find STEP01. If the EXEC says EXEC PGM=&... then you can do what you want. If the EXEC does not say EXEC PGM=&, then you cannot do what you want. In the first case, change your JCL to
Code:
//STEP01 EXEC BATCD45,????????=IEFBR14
where ???????? is the symbolic parameter after the &.
Back to top
View user's profile Send private message
kratos86

Active User


Joined: 17 Mar 2008
Posts: 148
Location: Anna NGR

PostPosted: Thu Apr 21, 2011 5:00 pm
Reply with quote

Why do you want to nullify the step?. If you don't want the step to be executed comment it or else if you want to execute a job with one null step. just use the below step

Code:
//STEP01 EXEC PGM=IEFBR14


always use appropriate tags for better readability.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Thu Apr 21, 2011 6:07 pm
Reply with quote

Changing the program to IEFBR14 will not nullify the step, it will just change the program. Any JCL that allocates or deletes datasets will still be in effect.

In case anyone else has not said so - BE REALLY CLEAR ABOUT WHAT YOU WANT TO DO.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Apr 21, 2011 6:42 pm
Reply with quote

I've been using something like this for 10+ years, without z/OS raising a stink -

Code:

//*
//* SET VARIABLE TO '0' (OFF) OR '1' (ON)
//*
// SET STEP01=0
//*
//* ALWAYS ENSURE THE MAXCC=0 AS UNCONDITIONAL 1ST-STEP
//*
//SETBOJCC EXEC PGM=IDCAMS
//SYSPRINT DD  SYSOUT=*
//SYSIN    DD  *
  SET MAXCC=0
/*
// ENDIF
//*
//* THE VARIABLE WILL RESOLVE AS EITHER (IF 1=1) OR (IF 1=0)
//* IF 1=1, THEN THE STEP WILL EXECUTE
//*
// IF &STEP01=1 THEN
//STEP01 EXEC PGM=IEFBR14
//CBOCNTRL DD DSN=PCT.CBOCNTRL.INFILE,DISP=SHR
//TEMPDSN DD DUMMY
//SYSIN DD *
/*
// ENDIF
//*
//

In this example, the variable is set to '0', so the step will not execute.

Bill
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Thu Apr 21, 2011 6:51 pm
Reply with quote

Bill -

Why not use a first step IEFBR14 to set RC=0?

Also, your first ENDIF is dangling.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Apr 21, 2011 7:16 pm
Reply with quote

Phil,

Yes, you're right, the first ENDIF is extraneous, so it can be removed.

I guess IEFBR14 could be used to set the MAXCC, but I know the IDCAMS step works too.

I've got DR Job's setup for off-site DFHLOG Stream Delete/Defines, using ON/OFF variables like this.

These Job's execute the same way every year with any trouble.

Bill
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Apr 22, 2011 12:20 am
Reply with quote

All those experts, reacting on a crap question. What happened to you guys? On shitty questions give a shitty response. After all those guys are going to do your jobs today or in the future.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Fri Apr 22, 2011 12:50 am
Reply with quote

They are welcome to my current job!
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Apr 22, 2011 12:57 am
Reply with quote

The TS may someday hold my position, but he could never do my job.
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 Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts trying to make sense of keylists TSO/ISPF 11
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
Search our Forums:

Back to Top