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
 

 

Can i override previous step instream data?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Can i override previous step instream data?
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: Chennai

PostPosted: Mon Apr 23, 2007 2:07 pm    Post subject: Re: Can i override previous step instream data?
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    Post subject: Re: Can i override previous step instream data?
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: 8593
Location: Back in jolly old England

PostPosted: Tue Apr 24, 2007 12:45 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 17, 2007 6:57 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm


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