View previous topic :: View next topic
|
Author |
Message |
getmohankumar81
New User
Joined: 13 Apr 2007 Posts: 3 Location: india
|
|
|
|
//step1 exec pgm=eztpa00
//dd1 dd etc....
//dd1 dd etc....
//sysin dd *
here i have ezt program
/*
//step2 exec pgm=eztpa00
//dd1 dd etc....
//dd1 dd etc....
//step1.sysin dd *
here i want to call the same program from the previous step by override
parameter,i m getting error while doing like this.
can we do like this to call instream data or some other way?
please provide me solution. |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
Please post the error and the complete code. |
|
Back to top |
|
|
vijayprabu
New User
Joined: 15 Dec 2005 Posts: 21
|
|
|
|
YOUR JCL
//step1 exec pgm=eztpa00
//dd1 dd etc....
//dd1 dd etc....
//sysin dd *
here i have ezt program
/*
//step2 exec pgm=eztpa00
//dd1 dd etc....
//dd1 dd etc....
//step1.sysin dd *
Solution:-
//step1.sysin dd * ==> This is wrong in step2. Instead you have to give
//DD2 DD DSN= *.step1.dd1
===============================================
Here is my example:
Example1: == Same Step
//JOBA JOB ...
//STEPA EXEC ...
//INPUTA DD DSN=REPORT
//OUTPUTA DD DSN=*.INPUTA
--------------------------------------------------------------------------------------
Example2: == Different Steps
//JOBA JOB ...
//STEPA EXEC ...
//INPUTA DD DSN=INFILE
//OUTPUTA DD DSN=REPORTA
//STEPB EXEC ...
//INPUTB DD DSN=*.STEPA.INPUTA
//OUTPUTB DD DSN=REPORTB
--------------------------------------------------------------------------------------
Example3: == Refer PROC DSN in JCL
Proc name - PROCA
//PSTEP1 EXEC ...
.
.
//PSTE2 EXEC ...
//INPUT2 DD DSN=INFILE2
//PSTEP2 EXEC ...
//OUTOPUT2 DD DSN=OUTFILE2
JCL
//JOB5 JOB ...
//PROCSTEP EXEC PROC=PROCA
.
.
//STEP1 EXEC .....
//DD1 DD DSN=*.PROCSTEP.PSTEP2.INPUT2
//DD2 DD DSN=OUTPUT
Note that the entire procedure PROCA is processed when the calling EXEC statement STEP1 is processed in JCL; therefore, all DD statements in the procedure are earlier than all DD statements in the calling step. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Unless you post the actual output and we can see the actual error, you may not get the help you have requested.
Quote: |
Please post the error and the complete code. |
As requested by muthuvel - but you have not done this. |
|
Back to top |
|
|
ramfrom84
New User
Joined: 23 Aug 2006 Posts: 93 Location: chennai
|
|
|
|
Input provide by Getmohankumar81 is sufficient to find the Solution rather then the error code.
I think it would be suitable solution to solve this problem..before read the post why asked for Error and complete code.
Vijay may be expert in JCl........
Bye........ |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
Input provide by Getmohankumar81 is sufficient to find the Solution rather then the error code. |
Then, please tell us the solution based on his posted data so far. |
|
Back to top |
|
|
|