|
View previous topic :: View next topic
|
| Author |
Message |
Harsha1525
New User
Joined: 22 Dec 2009 Posts: 24 Location: hyderabad
|
|
|
|
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
************************************ |
My Main JCL which call above stored procedure:
| Code: |
//STEP01 EXEC TESTPROC
//S2.D002 DD DSN=HARSH.PROC.RIDE1
//S1.D001 DD DSN=HARSH.PROC.RIDE2
//
************************************** |
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
coded - Anuj |
|
| Back to top |
|
 |
Akatsukami
Global Moderator

Joined: 03 Oct 2009 Posts: 1787 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? |
|
| Back to top |
|
 |
Harsha1525
New User
Joined: 22 Dec 2009 Posts: 24 Location: hyderabad
|
|
|
|
| Akatsukami wrote: |
| 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
publib.boulder.ibm.com/infocenter/zos/v1r11/index.jsp?topic=/com.ibm.zos.r11.ieab600/iea2b69020.htm
Looking at your post what I understood is when the ddnames are properly qualified order of overriding statements does not matter. |
|
| Back to top |
|
 |
Akatsukami
Global Moderator

Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
| Harsha1525 wrote: |
| Looking at your post what I understood is when the ddnames are properly qualified order of overriding statements does not matter. |
That is correct. This topic explicitly states:
| Quote: |
- 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. |
|
| Back to top |
|
 |
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1054 Location: Richmond, Virginia
|
|
|
|
A side note - you seem to have some illegal spaces in your code around the DSN = part.
You should use the code tag and also cut&paste rather than retyping. |
|
| Back to top |
|
 |
Harsha1525
New User
Joined: 22 Dec 2009 Posts: 24 Location: hyderabad
|
|
|
|
@ 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  |
|
| Back to top |
|
 |
PeterHolland
Global Moderator

Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
| Quote: |
and it is happy ending for me
|
And what movie was that? |
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 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. |
|
| Back to top |
|
 |
Harsha1525
New User
Joined: 22 Dec 2009 Posts: 24 Location: hyderabad
|
|
|
|
| PeterHolland wrote: |
| Quote: |
and it is happy ending for me
|
And what movie was that? |
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.
MY Procedure:
| Code: |
//PROC001 PROC
//S1 EXEC PGM=IEFBR14
//D001 DD DSN=HARSHA.TESTPROC.TEST1,
// SPACE=(TRK,5),DISP=(NEW,CATLG,DELETE),
// DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800)
//D002 DD DSN=HARSHA.TESTPROC.TEST2,
// SPACE=(TRK,5),DISP=(NEW,CATLG,DELETE),
// DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800)
// PEND
***************************************************
|
MY JCL:
| Code: |
//STEP01 EXEC PROC001
//S1.D002 DD DSN=HARSHA.TESTPROC.RIDE2
//S1.D001 DD DSN=HARSHA.TESTPROC.RIDE1
**************************************************
|
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?
Coded |
|
| Back to top |
|
 |
Harsha1525
New User
Joined: 22 Dec 2009 Posts: 24 Location: hyderabad
|
|
|
|
| Anuj Dhawan wrote: |
| 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. |
Thanks Anuj. I understood the problem and I hope I taken care this one In my last post |
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
| Not really, I had to add the code tags again. |
|
| Back to top |
|
 |
PeterHolland
Global Moderator

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 :
| Code: |
1 //XIBFTEST JOB ,MSGCLASS=1,CLASS=A JOB 176
//PROC001 PROC
//S1 EXEC PGM=IEFBR14
//D001 DD DSN=HARSHA.TESTPROC.TEST1,
// SPACE=(TRK,5),DISP=(,PASS),UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
//D002 DD DSN=HARSHA.TESTPROC.TEST2,
// SPACE=(TRK,5),DISP=(,PASS),UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
// PEND
2 //STEP01 EXEC PROC001
3 ++PROC001 PROC
4 ++S1 EXEC PGM=IEFBR14
5 //S1.D001 DD DSN=HARSHA.TESTPROC.RIDE2
+/D001 DD DSN=HARSHA.TESTPROC.TEST1,
++ SPACE=(TRK,5),DISP=(,PASS),UNIT=SYSDA,
++ DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
6 //S1.D002 DD DSN=HARSHA.TESTPROC.RIDE1
+/D002 DD DSN=HARSHA.TESTPROC.TEST2,
++ SPACE=(TRK,5),DISP=(,PASS),UNIT=SYSDA,
++ DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
1 //XIBFTEST JOB ,MSGCLASS=1,CLASS=A JOB 177
//PROC001 PROC
//S1 EXEC PGM=IEFBR14
//D001 DD DSN=HARSHA.TESTPROC.TEST1,
// SPACE=(TRK,5),DISP=(,PASS),UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
//D002 DD DSN=HARSHA.TESTPROC.TEST2,
// SPACE=(TRK,5),DISP=(,PASS),UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
// PEND
2 //STEP01 EXEC PROC001
3 ++PROC001 PROC
4 ++S1 EXEC PGM=IEFBR14
5 ++D001 DD DSN=HARSHA.TESTPROC.TEST1,
++ SPACE=(TRK,5),DISP=(,PASS),UNIT=SYSDA,
++ DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
6 //S1.D002 DD DSN=HARSHA.TESTPROC.RIDE1
+/D002 DD DSN=HARSHA.TESTPROC.TEST2,
++ SPACE=(TRK,5),DISP=(,PASS),UNIT=SYSDA,
++ DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
7 //S1.D001 DD DSN=HARSHA.TESTPROC.RIDE2
IEF210I XIBFTEST S1 STEP01 D001 - UNIT FIELD SPECIFIES INCORRECT DEVICE NAME
|
|
|
| Back to top |
|
 |
Akatsukami
Global Moderator

Joined: 03 Oct 2009 Posts: 1787 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? |
|
| Back to top |
|
 |
PeterHolland
Global Moderator

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? |
Oh yes, im running MVS 3.8J on my PC. |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
running on z/OS 1.11 with JES2, results are the same as Akatsukami. no issues in re-arranging the overrides.
Gerry |
|
| Back to top |
|
 |
PeterHolland
Global Moderator

Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
I think the z/OS systems are specially developed for a lot of the people here having skills in JCL.  |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|