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

Can i override previous step instream data?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
getmohankumar81

New User


Joined: 13 Apr 2007
Posts: 3
Location: india

PostPosted: Mon Apr 23, 2007 2:01 pm
Reply with quote

//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
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Mon Apr 23, 2007 2:07 pm
Reply with quote

Please post the error and the complete code.
Back to top
View user's profile Send private message
vijayprabu

New User


Joined: 15 Dec 2005
Posts: 21

PostPosted: Tue Apr 24, 2007 12:42 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Apr 24, 2007 12:45 pm
Reply with quote

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
View user's profile Send private message
ramfrom84

New User


Joined: 23 Aug 2006
Posts: 93
Location: chennai

PostPosted: Thu May 17, 2007 6:48 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu May 17, 2007 6:57 pm
Reply with quote

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
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top