View previous topic :: View next topic
|
Author |
Message |
kiran_65
New User
Joined: 01 Apr 2005 Posts: 46
|
|
|
|
Hi,
can you please help me to solve the below problem:
i am writing two instream procs:
Code: |
//job1
//c1 proc
//cs1 exec pgm=cccc
//cs1dd dd dsn= xxxx.xx.xx disp=(new,catlg,delete).....
// pend
//b1 proc
//b1 exec c1
//*here i want to override the above file, so i wrote the following statement
//CS1.CS1DD DD DSN=DPFCB.DEEPTI.FILE2
// pend
//jstep1 exec b1
//sysin dd sysout=*
//
|
the following error is coming:
10 IEFC611I OVERRIDDEN STEP NOT FOUND IN PROCEDURE |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Please look in the forum for previous discussion on overriding nested PROCs.
You will probably not like the info - if i recall, the determination was that you have problems trying to override the "deeper" proc.
My suggestion would be to avoid nesting procs. I've not yet encountered a situation where i must nest a proc. It may create an easy way to do some things, but override and restart gets too ugly to put in production (IMHO). |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You need to make this change:
Code: |
//job1
//c1 proc
//cs1 exec pgm=cccc
//cs1dd dd dsn= xxxx.xx.xx disp=(new,catlg,delete).....
// pend
//b1 proc
//b1 exec c1
//*here i want to override the above file, so i wrote the following statement
//CS1.CS1DD DD DSN=DPFCB.DEEPTI.FILE2
// pend
//jstep1 exec b1
//sysin dd sysout=* <<= remove this line
or add another step with a program:
//jstep2 exec pgm=iefbr14
//sysin dd sysout=*
//
|
It's the last line:
//sysin dd sysout=*
that's being flagged. jstep1 doesn't execute a program, so the sysin dd statement can't belong to it. It also can't belong to proc b1, since b1 also doesn't execute a program. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
I don't understand
//SYSIN DD SYSOUT=*
Is this input or output?
I think you want
//SYSIN DD *
data goes here
//ddname DD SYSOUT=*
is used for directing output, and the * means default to the MSGCLASS on the JOB card. |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
Hi kiran_65,
U can't have instream data in your proc.
DUMMY it in your proc and give override to the DD from your job.
~Vamsi |
|
Back to top |
|
|
|