View previous topic :: View next topic
|
Author |
Message |
muppanenidilip Warnings : 1 New User
Joined: 06 Jun 2007 Posts: 5 Location: Bangalore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
muppanenidilip Warnings : 1 New User
Joined: 06 Jun 2007 Posts: 5 Location: Bangalore
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
//STEP01 EXEC BATCD45
looks like a proc Expat.
But what the hell why do i bother, its all your game. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
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 |
|
|
muppanenidilip Warnings : 1 New User
Joined: 06 Jun 2007 Posts: 5 Location: Bangalore
|
|
|
|
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 |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
kratos86
Active User
Joined: 17 Mar 2008 Posts: 148 Location: Anna NGR
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1049 Location: Richmond, Virginia
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1049 Location: Richmond, Virginia
|
|
|
|
Bill -
Why not use a first step IEFBR14 to set RC=0?
Also, your first ENDIF is dangling. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
They are welcome to my current job! |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
The TS may someday hold my position, but he could never do my job. |
|
Back to top |
|
|
|