Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts Extract Data till prev hour balaji81_k DB2 16 Fri Aug 25, 2017 9:25 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us