Hi,
actually I am expecting error with my overriding statement which I have written in my JCL. but surprisingly it is not showing any error . I know no error is good but i am trying to understand why I am not getting error with below statement.
my cataloged procedure:
Code:
**********************************
//TESTPROC PROC
//S1 EXEC IEFBR14
//D001 DD DSN = HARSHA.PROC.TEST1,
// DISP=(NEW,CATLG,DELETE)
// --- DCB AND SPACE STUFF----
//S2 EXEC IEFBR14
//D002 DD DSN = HARSH.PROC.TEST2
// DISP=(NEW,CATALG,DELETE)
// --- DCB AND SPACE STUFF----
// PEND
************************************
Why I am expecting error here is I am not overriding in the order I have defined steps in my procedure. according to my knowledge first i should write override statement for the step "S1" and next I should write for the step "S2". not sure if I understand manual in wrong way. anyone have any comments here please welcome
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
I do not see anything in the JCL Reference or User's Guide that suggests that that override statements, when the DD names are properly qualified, cannot be placed out of order. May one ask where you have gotten this idea?
I do not see anything in the JCL Reference or User's Guide that suggests that that override statements, when the DD names are properly qualified, cannot be placed out of order. May one ask where you have gotten this idea?
This is the statement I read
" For all procedure steps in the invoked procedure, place the modifying statements for each procedure step in the same order in which the procedure steps are specified."
May be I interpreted completely in wrong way
this is the link:
Modifying procedures--> explanation
Overriding statements can appear in any order when they explicitly specify the step that is being overridden. Added statements can appear in any order when they specify the step explicitly.
Overriding and added statements that do not explicitly specify the step are applied to the step named in the previous overriding or added OUTPUT JCL or DD statement. If no previous override statement named a step, then they are applied to the first step in the procedure.
I suspect that you have only been exposed to the second case (which is not a criticism; even I was once inexperienced...in the Upper Pleistocene ) and have therefore misinterpreted it as the only way to write JCL.
@ Akatsukami: Hmmm I missed the END of the movie Thank you for your time. now I am clear and it is happy ending for me
@ Phrzby Phil: you are correct but due to security reasons I can not cut & paste from my shop but trust me as a software engineer I love cut and paste that is the best feature I ever seen
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
Harsha1525 wrote:
@ Phrzby Phil: you are correct but due to security reasons I can not cut & paste from my shop but trust me as a software engineer I love cut and paste that is the best feature I ever seen
Please have a look at your post now - I've edited it to add the "Code Tags" which Phrzby was talking about. And by "cut/paste" it does not mean that you come under the scanner of copyright/security issues - point is, your post should be readbale and to the point for a third-person.
Hi peter, yes actually I thought like I have a happy ending. After looking at your question I did check whether I really have the happy ending or not.unfortunately not. I thought like at least below code should give the error but this one is also not giving error.
I thought like atleast I need to follow the order when you are overriding
dd statements of the same procedure step. but if I do not follow the order also I am not getting any error.
what kind of order it is when the manual say " For all procedure steps in the invoked procedure, place the modifying statements for each procedure step in the same order in which the procedure steps are specified."
Simply I am not getting . am I missing anything here?
@ Phrzby Phil: you are correct but due to security reasons I can not cut & paste from my shop but trust me as a software engineer I love cut and paste that is the best feature I ever seen
Please have a look at your post now - I've edited it to add the "Code Tags" which Phrzby was talking about. And by "cut/paste" it does not mean that you come under the scanner of copyright/security issues - point is, your post should be readbale and to the point for a third-person.
Thanks Anuj. I understood the problem and I hope I taken care this one In my last post
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
In the first place i don't see a UNIT= in your jcl. I guess that would result
in a JCL error. I did 2 tests, look at the following output and you will see
that out of sequence overriding statements result in a jclerror also :
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
PeterHolland wrote:
I did 2 tests, look at the following output and you will see that out of sequence overriding statements result in a jclerror also :
And yet when I ran that same JCL, the interpreter correctly re-ordered the overrides and the job ran to CC=0. My system is running z/OS 1.13 with JES3; perhaps you have different software on yours?
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
Akatsukami wrote:
PeterHolland wrote:
I did 2 tests, look at the following output and you will see that out of sequence overriding statements result in a jclerror also :
And yet when I ran that same JCL, the interpreter correctly re-ordered the overrides and the job ran to CC=0. My system is running z/OS 1.13 with JES3; perhaps you have different software on yours?