Executing n th step in a proc - JCL - IEBEDIT

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
rajkumarprajapati
Member
Posts: 40
Joined: Tue Sep 18, 2007 1:17 pm

Executing n th step in a proc - JCL - IEBEDIT

Post by rajkumarprajapati » Thu Apr 23, 2009 12:39 pm

There is a cataloged procedure say consisting of 10 steps.
If I want to use 5th step of that proc in my testjcl( jcl which I have developed) how will I refer that 5th step in my test jcl?

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Thu Apr 23, 2009 2:46 pm

I dont think, we can refer only 5th step of one proc.
My suggestion is execute that proc from your job and override
the COND value of first 4 steps, so that they wont get executed.
Natarajan
Chennai

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Thu Apr 23, 2009 5:24 pm

IEBEDIT?
Regards,
Anuj

rajkumarprajapati
Member
Posts: 40
Joined: Tue Sep 18, 2007 1:17 pm

Post by rajkumarprajapati » Thu Apr 23, 2009 8:57 pm

Hi Anuj,
can u give me few lines of code for IEBEDIT?

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Thu Apr 23, 2009 9:30 pm

Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Fri Apr 24, 2009 10:54 am

rajkumarprajapati wrote:can u give me few lines of code for IEBEDIT?
To start with, you can use below code as reference; however it would be good to spend some time with the documentation Dick has pointed to.

Code: Select all

//STEP002  EXEC PGM=IEBEDIT                          
//SYSUT1   DD DSN=your.jcllib(member),DISP=SHR
//SYSUT2   DD SYSOUT=(*,INTRDR)                      
//SYSPRINT DD SYSOUT=*                               
//SYSIN    DD *                                      
  EDIT TYPE=INCLUDE,STEPNAME=(STEP005,STEP050)       
/*                                                   
//*                                                  
Regards,
Anuj

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others