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 to make one step in JCL to Null step(IEFBR14)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to make one step in JCL to Null step(IEFBR14)
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 21, 2011 12:46 pm    Post subject:
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    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 21, 2011 1:40 pm    Post subject:
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Apr 21, 2011 1:50 pm    Post subject:
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: 1715
Location: UK

PostPosted: Thu Apr 21, 2011 2:23 pm    Post subject:
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    Post subject:
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

Active Member


Joined: 08 May 2006
Posts: 990
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Thu Apr 21, 2011 3:49 pm    Post subject:
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: 1715
Location: UK

PostPosted: Thu Apr 21, 2011 3:52 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7234

PostPosted: Thu Apr 21, 2011 4:02 pm    Post subject: Reply to: How to make one step in JCL to Null step(IEFBR14)
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: 7913
Location: Bellevue, IA

PostPosted: Thu Apr 21, 2011 4:09 pm    Post subject:
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    Post subject:
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

Active Member


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

PostPosted: Thu Apr 21, 2011 6:07 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Apr 21, 2011 6:42 pm    Post subject: Reply to: How to make one step in JCL to Null step(IEFBR14)
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

Active Member


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

PostPosted: Thu Apr 21, 2011 6:51 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Apr 21, 2011 7:16 pm    Post subject: Reply to: How to make one step in JCL to Null step(IEFBR14)
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri Apr 22, 2011 12:20 am    Post subject:
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: 1715
Location: UK

PostPosted: Fri Apr 22, 2011 12:50 am    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Fri Apr 22, 2011 12:57 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts Syncsort - NULL in Integer field chec... nartcr SYNCSORT 4 Thu Oct 06, 2016 6:47 am
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts Converting NULL column into NOT NULL ... Raghu navaikulam DB2 5 Sat Aug 06, 2016 3:45 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm


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